]> granicus.if.org Git - shadow/commitdiff
* lib/sgetspent.c: Use SHADOW_SP_FLAG_UNSET for the initial
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 21:36:41 +0000 (21:36 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 21:36:41 +0000 (21:36 +0000)
value of spwd.sp_flag.

ChangeLog
lib/sgetspent.c

index 906b79e3ec281c33a52ddab33a8290049ed92f47..0c0f0a88f2ce9f37aaaddb5600f671d0e4e79daa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-13  Nicolas François  <nicolas.francois@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@centraliens.net>
 
        * lib/getdef.h, lib/getdef.c: Add getdef_ulong().
index be55e77db58749d564a14d9633e3d91fd366c2bf..d31f2ede605789822aa49efeb56a5c8ca330c3ec 100644 (file)
@@ -147,7 +147,7 @@ struct spwd *sgetspent (const char *string)
                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 @@ struct spwd *sgetspent (const char *string)
        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);