* src/pwconv.c: Use SHADOW_SP_FLAG_UNSET for the initial
value of sp.sp_flag. * src/pwconv.c: Cast number of days to a long integer.
This commit is contained in:
parent
d1881d1b56
commit
47210d9a1a
@ -1,3 +1,9 @@
|
||||
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/pwconv.c: Use SHADOW_SP_FLAG_UNSET for the initial
|
||||
value of sp.sp_flag.
|
||||
* src/pwconv.c: Cast number of days to a long integer.
|
||||
|
||||
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/gpasswd.c: The ID argument of audit_logger is an unsigned
|
||||
|
@ -176,10 +176,10 @@ int main (int argc, char **argv)
|
||||
spent.sp_warn = getdef_num ("PASS_WARN_AGE", -1);
|
||||
spent.sp_inact = -1;
|
||||
spent.sp_expire = -1;
|
||||
spent.sp_flag = -1;
|
||||
spent.sp_flag = SHADOW_SP_FLAG_UNSET;
|
||||
}
|
||||
spent.sp_pwdp = pw->pw_passwd;
|
||||
spent.sp_lstchg = time ((time_t *) 0) / (24L * 3600L);
|
||||
spent.sp_lstchg = (long) time ((time_t *) 0) / SCALE;
|
||||
if (spw_update (&spent) == 0) {
|
||||
fprintf (stderr,
|
||||
_
|
||||
|
Loading…
Reference in New Issue
Block a user