* lib/sgetspent.c: Use SHADOW_SP_FLAG_UNSET for the initial

value of spwd.sp_flag.
This commit is contained in:
nekral-guest
2008-06-13 21:36:41 +00:00
parent c9679b7954
commit 92143eb7b9
2 changed files with 7 additions and 2 deletions

View 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);