]> granicus.if.org Git - shadow/commitdiff
(find_new_gid): If oflg is set, gflg is also set.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 28 Dec 2007 10:19:21 +0000 (10:19 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 28 Dec 2007 10:19:21 +0000 (10:19 +0000)
Use (!gflg), which is cleared than (!gflg || !oflg).

ChangeLog
src/groupadd.c

index 53011c3446d170f7ad04a94ed24b0ef3a022552a..d936484c7aad8025cbb41e2ed5233f6c417fbd2c 100644 (file)
--- 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  <nicolas.francois@centraliens.net>
 
index 16b16aa1e098b9165c674364ad0e41e811e1ec18..1eb56f767fa09a88bbf38847878fa289ca869136 100644 (file)
@@ -532,7 +532,7 @@ int main (int argc, char **argv)
         */
        open_files ();
 
-       if (!gflg || !oflg) {
+       if (!gflg) {
                find_new_gid ();
        }