[Pkg-shadow-commits] r2524 - in upstream/trunk: . libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun Mar 15 21:12:57 UTC 2009


Author: nekral-guest
Date: 2009-03-15 21:12:57 +0000 (Sun, 15 Mar 2009)
New Revision: 2524

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/find_new_gid.c
Log:
	* libmisc/find_new_gid.c: Fix find_new_gid() the current group
	database was not taken into account.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-03-15 21:10:35 UTC (rev 2523)
+++ upstream/trunk/ChangeLog	2009-03-15 21:12:57 UTC (rev 2524)
@@ -1,5 +1,10 @@
 2009-03-15  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/find_new_gid.c: Fix find_new_gid() the current group
+	database was not taken into account.
+
+2009-03-15  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* libmisc/addgrps.c: Fix compilation warnings.
 
 2009-03-14  Nicolas François  <nicolas.francois at centraliens.net>

Modified: upstream/trunk/libmisc/find_new_gid.c
===================================================================
--- upstream/trunk/libmisc/find_new_gid.c	2009-03-15 21:10:35 UTC (rev 2523)
+++ upstream/trunk/libmisc/find_new_gid.c	2009-03-15 21:12:57 UTC (rev 2524)
@@ -100,7 +100,7 @@
 	}
 	endgrent ();
 	gr_rewind ();
-	while ((grp = getgrent ()) != NULL) {
+	while ((grp = gr_next ()) != NULL) {
 		if ((grp->gr_gid >= group_id) && (grp->gr_gid <= gid_max)) {
 			group_id = grp->gr_gid + 1;
 		}




More information about the Pkg-shadow-commits mailing list