adduser: fix a logical inversion which made -G GRP inoperative
authorTito Ragusa <farmatito@tiscali.it>
Sat, 9 Jan 2010 17:06:40 +0000 (18:06 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 9 Jan 2010 17:08:35 +0000 (18:08 +0100)
Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
loginutils/adduser.c

index 0e9936ad191601538db26270c56819158de7bb65..ff30a592d1e691ae35fe326f305316186f779414 100644 (file)
@@ -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