Lines Matching refs:spw
56 auth_shadow_acctexpired(struct spwd *spw)
63 daysleft = spw->sp_expire - today;
65 (int)spw->sp_expire, daysleft);
67 if (spw->sp_expire == -1) {
70 logit("Account %.100s has expired", spw->sp_namp);
72 } else if (daysleft <= spw->sp_warn) {
90 struct spwd *spw = NULL;
96 if ((spw = getspnam((char *)user)) == NULL) {
103 (int)spw->sp_lstchg, (int)spw->sp_max);
121 daysleft = spw->sp_lstchg + spw->sp_max - today;
124 } else if (spw->sp_lstchg == 0) {
127 } else if (spw->sp_max == -1) {
132 } else if (daysleft <= spw->sp_warn) {