From: Tito Ragusa Date: Sat, 9 Jan 2010 17:06:40 +0000 (+0100) Subject: adduser: fix a logical inversion which made -G GRP inoperative X-Git-Tag: 1_16_0~75 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0681137972dc89b5003b0415e09184c0ecf1c875;p=oweals%2Fbusybox.git adduser: fix a logical inversion which made -G GRP inoperative Signed-off-by: Tito Ragusa Signed-off-by: Denys Vlasenko --- 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