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 (); }