From 0681137972dc89b5003b0415e09184c0ecf1c875 Mon Sep 17 00:00:00 2001 From: Tito Ragusa Date: Sat, 9 Jan 2010 18:06:40 +0100 Subject: adduser: fix a logical inversion which made -G GRP inoperative Signed-off-by: Tito Ragusa Signed-off-by: Denys Vlasenko --- loginutils/adduser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 0e9936ad1..ff30a592d 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -190,7 +190,7 @@ int adduser_main(int argc UNUSED_PARAM, char **argv) /* add to group */ /* addgroup should be responsible for dealing w/ gshadow */ /* if using a pre-existing group, don't create one */ - if (!usegroup) + if (usegroup) addgroup_wrapper(&pw); /* clear the umask for this process so it doesn't -- cgit v1.2.3