From b4071939e03501e3a7f421db00af658061c2bef7 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 28 Dec 2007 10:15:42 +0000 Subject: [PATCH] A group with the specified name cannot exist at that time in find_new_gid. Remove the check. --- ChangeLog | 7 ++++++- src/groupadd.c | 8 -------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 915996d0..53011c34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2007-12-27 Nicolas François +2007-12-28 Nicolas François + + * src/groupadd.c (find_new_gid): A group with the specified name + cannot exist at that time. Remove the check. + +2007-12-28 Nicolas François src/groupadd.c cleanup * src/groupadd.c (fail_exit): When compiled without AUDIT support, if diff --git a/src/groupadd.c b/src/groupadd.c index 9e881d79..16b16aa1 100644 --- a/src/groupadd.c +++ b/src/groupadd.c @@ -217,14 +217,6 @@ static void find_new_gid (void) */ setgrent (); while ((grp = getgrent ())) { - if (strcmp (group_name, grp->gr_name) == 0) { - if (fflg) { - fail_exit (E_SUCCESS); - } - fprintf (stderr, _("%s: name %s is not unique\n"), - Prog, group_name); - fail_exit (E_NAME_IN_USE); - } if (gflg && (group_id == grp->gr_gid)) { if (fflg) { /* turn off -g and search again */