[system-tools-backends-clone] Identify groups by login, not GID



commit 34e699559ac3a235a715bba9b76328dd0e009469
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sun Mar 14 15:54:51 2010 +0100

    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).

 Users/Groups.pm |    4 ++--
 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]