[liboobs] Bug 521438 – Don't fail if homedir or shell are not set
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Subject: [liboobs] Bug 521438 – Don't fail if homedir or shell are not set
- Date: Sun, 26 Jul 2009 18:25:00 +0000 (UTC)
commit 6a26d8f603e37eed0a2617e8b705f04c1676b1a1
Author: Emilio Pozuelo Monfort <pochu ubuntu com>
Date: Sun Jul 26 14:50:07 2009 +0200
Bug 521438 â?? Don't fail if homedir or shell are not set
Empty homedir or shell in /etc/passwd are allowed, so they should not block liboobs from committing the changes to the system. This fixes a bug where creating users was not possible when such accounts were present on the system.
oobs/oobs-usersconfig.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/oobs/oobs-usersconfig.c b/oobs/oobs-usersconfig.c
index 00ce5c4..f80d960 100644
--- a/oobs/oobs-usersconfig.c
+++ b/oobs/oobs-usersconfig.c
@@ -359,7 +359,7 @@ create_dbus_struct_from_user (OobsUser *user,
"other-data", &other_data,
NULL);
- g_return_val_if_fail ((login && password && homedir && shell), FALSE);
+ g_return_val_if_fail ((login && password), FALSE);
group = oobs_user_get_main_group (user);
gid = oobs_group_get_gid (group);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]