[Pkg-shadow-commits] r2169 - in upstream/trunk: . lib

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Fri Jun 13 21:36:42 UTC 2008


Author: nekral-guest
Date: 2008-06-13 21:36:41 +0000 (Fri, 13 Jun 2008)
New Revision: 2169

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/sgetspent.c
Log:
	* lib/sgetspent.c: Use SHADOW_SP_FLAG_UNSET for the initial
	value of spwd.sp_flag.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-06-13 21:35:22 UTC (rev 2168)
+++ upstream/trunk/ChangeLog	2008-06-13 21:36:41 UTC (rev 2169)
@@ -1,5 +1,10 @@
 2008-06-13  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* lib/sgetspent.c: Use SHADOW_SP_FLAG_UNSET for the initial
+	value of spwd.sp_flag.
+
+2008-06-13  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/getdef.h, lib/getdef.c: Add getdef_ulong().
 	* lib/getdef.c: Added TODOs because of lack of error checking.
 	* lib/getdef.c: The size argument of fgets is an int, not a

Modified: upstream/trunk/lib/sgetspent.c
===================================================================
--- upstream/trunk/lib/sgetspent.c	2008-06-13 21:35:22 UTC (rev 2168)
+++ upstream/trunk/lib/sgetspent.c	2008-06-13 21:36:41 UTC (rev 2169)
@@ -147,7 +147,7 @@
 		spwd.sp_warn   = -1;
 		spwd.sp_inact  = -1;
 		spwd.sp_expire = -1;
-		spwd.sp_flag   = -1;
+		spwd.sp_flag   = SHADOW_SP_FLAG_UNSET;
 
 		return &spwd;
 	}
@@ -200,7 +200,7 @@
 	if ((0 == spwd.sp_flag) && ('\0' != *cpp)) {
 		return 0;
 	} else if (fields[8][0] == '\0') {
-		spwd.sp_flag = -1;
+		spwd.sp_flag = SHADOW_SP_FLAG_UNSET;
 	}
 
 	return (&spwd);




More information about the Pkg-shadow-commits mailing list