summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Bouchet-Valat <nalimilan@club.fr>2010-03-14 15:54:51 +0100
committerMilan Bouchet-Valat <nalimilan@club.fr>2010-03-14 16:13:13 +0100
commit34e699559ac3a235a715bba9b76328dd0e009469 (patch)
tree8e0fe22b24f4f9339b09ebbd8c5479b081c13246
parentbd607d9be07d9ad001e282525588cfea8667039a (diff)
Identify groups by login, not GID
Just like users, login is considered to be the fixed way of identifying groups. This allows changing their GID. Changing a group's login is not possible since we would consider it as a new group. This is how things were supposed to work (see the gnome-system-tools).
-rw-r--r--Users/Groups.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Users/Groups.pm b/Users/Groups.pm
index f68d9b4..ba674e1 100644
--- a/Users/Groups.pm
+++ b/Users/Groups.pm
@@ -252,7 +252,7 @@ sub set_group
foreach $group (@$groups)
{
- if ($$new_group[$GID] == $$group[$GID])
+ if ($$new_group[$LOGIN] eq $$group[$LOGIN])
{
&change_group ($group, $new_group);
return;
@@ -316,7 +316,7 @@ sub set
{
foreach $group (@$groups)
{
- if ($$new_group[$GID] == $$group[$GID])
+ if ($$new_group[$LOGIN] eq $$group[$LOGIN])
{
&change_group ($group, $new_group);
break;