(find_new_gid): If oflg is set, gflg is also set.

Use (!gflg), which is cleared than (!gflg || !oflg).
This commit is contained in:
nekral-guest 2007-12-28 10:19:21 +00:00
parent b4071939e0
commit 83b546beef
2 changed files with 3 additions and 1 deletions

View File

@ -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>

View File

@ -532,7 +532,7 @@ int main (int argc, char **argv)
*/
open_files ();
if (!gflg || !oflg) {
if (!gflg) {
find_new_gid ();
}