[gnome-system-tools] Fix checking whether an UID is free
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Fix checking whether an UID is free
- Date: Sat, 19 Sep 2009 11:48:43 +0000 (UTC)
commit cb83e86d2dbb4df44e7d00a3ae809fe88a718547
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sat Sep 19 13:45:07 2009 +0200
Fix checking whether an UID is free
A mistake in variables could prevent user creation from working at all. We were comparing UIDs with an uninitialized int, leading to strange results. This was introduced by 36cdbf80fa16cfac1a15f24ee32c2b272f68e521.
src/users/user-settings.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index 74d68fe..227b27b 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -339,7 +339,7 @@ uid_exists (uid_t uid)
while (valid) {
user = oobs_list_get (list, &list_iter);
- uid = oobs_user_get_uid (OOBS_USER (user));
+ user_uid = oobs_user_get_uid (OOBS_USER (user));
g_object_unref (user);
if (user_uid == uid)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]