From: nekral-guest Date: Fri, 28 Dec 2007 10:19:21 +0000 (+0000) Subject: (find_new_gid): If oflg is set, gflg is also set. X-Git-Tag: 4.1.1~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83b546beef98dc4197a86c4917b66029300468f7;p=shadow (find_new_gid): If oflg is set, gflg is also set. Use (!gflg), which is cleared than (!gflg || !oflg). --- diff --git a/ChangeLog b/ChangeLog index 53011c34..d936484c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * src/groupadd.c (find_new_gid): A group with the specified name cannot exist at that time. Remove the check. + * src/groupadd.c (find_new_gid): If oflg is set, gflg is also set. + Use (!gflg), which is cleared than (!gflg || !oflg). 2007-12-28 Nicolas François diff --git a/src/groupadd.c b/src/groupadd.c index 16b16aa1..1eb56f76 100644 --- a/src/groupadd.c +++ b/src/groupadd.c @@ -532,7 +532,7 @@ int main (int argc, char **argv) */ open_files (); - if (!gflg || !oflg) { + if (!gflg) { find_new_gid (); }