]> granicus.if.org Git - shadow/commitdiff
A group with the specified name cannot exist at that time in find_new_gid.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 28 Dec 2007 10:15:42 +0000 (10:15 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 28 Dec 2007 10:15:42 +0000 (10:15 +0000)
Remove the check.

ChangeLog
src/groupadd.c

index 915996d090a5cb75df5466cebe1e13f1eb50061a..53011c3446d170f7ad04a94ed24b0ef3a022552a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-2007-12-27  Nicolas François  <nicolas.francois@centraliens.net>
+2007-12-28  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * 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  <nicolas.francois@centraliens.net>
 
        src/groupadd.c cleanup
        * src/groupadd.c (fail_exit): When compiled without AUDIT support, if
index 9e881d79ae193a56ca415b9c2448b52f88ff59df..16b16aa1e098b9165c674364ad0e41e811e1ec18 100644 (file)
@@ -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 */