summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Bouchet-Valat <nalimilan@club.fr>2010-03-20 11:36:53 +0100
committerMilan Bouchet-Valat <nalimilan@club.fr>2010-03-20 11:43:56 +0100
commit48182975d75e949f20bc611151a742314f6d1ee4 (patch)
tree347702b6266cb396936fb530d2e02dcfcad07837
parent2b47e4bf63b18b436187921b500fe412001e6849 (diff)
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.
-rw-r--r--Users/Users.pm2
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;