[Pkg-shadow-commits] r1526 - in upstream/trunk: . src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Fri Dec 28 10:15:42 UTC 2007


Author: nekral-guest
Date: 2007-12-28 10:15:42 +0000 (Fri, 28 Dec 2007)
New Revision: 1526

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/groupadd.c
Log:
A group with the specified name cannot exist at that time in find_new_gid.
Remove the check.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2007-12-28 10:12:09 UTC (rev 1525)
+++ upstream/trunk/ChangeLog	2007-12-28 10:15:42 UTC (rev 1526)
@@ -1,5 +1,10 @@
-2007-12-27  Nicolas François  <nicolas.francois at centraliens.net>
+2007-12-28  Nicolas François  <nicolas.francois at 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 at centraliens.net>
+
 	src/groupadd.c cleanup
 	* src/groupadd.c (fail_exit): When compiled without AUDIT support, if
 	the return code was E_SUCCESS, fail_exit() wouldn't have exited. Fix

Modified: upstream/trunk/src/groupadd.c
===================================================================
--- upstream/trunk/src/groupadd.c	2007-12-28 10:12:09 UTC (rev 1525)
+++ upstream/trunk/src/groupadd.c	2007-12-28 10:15:42 UTC (rev 1526)
@@ -217,14 +217,6 @@
 	 */
 	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 */




More information about the Pkg-shadow-commits mailing list