[system-tools-backends-clone] Identify users by login, not UID



commit 48182975d75e949f20bc611151a742314f6d1ee4
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sat Mar 20 11:36:53 2010 +0100

    Identify users by login, not UID
    
    Login is considered to be the fixed way of identifying users and groups. This allows changing their UID. Changing a user's login is not possible since we would consider it as a new user. This is how things were supposed to work (see the gnome-system-tools).
    
    Also see commit 34e6995, which fixed the same mistake for groups.

 Users/Users.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Users/Users.pm b/Users/Users.pm
index 54dbece..a658660 100644
--- a/Users/Users.pm
+++ b/Users/Users.pm
@@ -779,7 +779,7 @@ sub set_user
 
   foreach $user (@$users)
   {
-    if ($$new_user[$UID] == $$user[$UID])
+    if ($$new_user[$LOGIN] eq $$user[$LOGIN])
     {
       &change_user ($user, $new_user);
       return;



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