From 83b546beef98dc4197a86c4917b66029300468f7 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 28 Dec 2007 10:19:21 +0000 Subject: [PATCH] (find_new_gid): If oflg is set, gflg is also set. Use (!gflg), which is cleared than (!gflg || !oflg). --- ChangeLog | 2 ++ src/groupadd.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 (); }