SCCS-vsn: usr.bin/login/login.c 5.37
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)login.c 5.36 (Berkeley) %G%";
+static char sccsid[] = "@(#)login.c 5.37 (Berkeley) %G%";
printf("Sorry -- your password has expired.\n");
sleepexit(1);
}
printf("Sorry -- your password has expired.\n");
sleepexit(1);
}
- else if (tp.tv_sec - pwd->pw_change < TWOWEEKS) {
+ else if (tp.tv_sec - pwd->pw_change < TWOWEEKS && !quietlog) {
ttp = localtime(&pwd->pw_change);
printf("Warning: your password expires on %s %d, 19%d\n",
months[ttp->tm_mon], ttp->tm_mday, ttp->tm_year);
ttp = localtime(&pwd->pw_change);
printf("Warning: your password expires on %s %d, 19%d\n",
months[ttp->tm_mon], ttp->tm_mday, ttp->tm_year);
printf("Sorry -- your account has expired.\n");
sleepexit(1);
}
printf("Sorry -- your account has expired.\n");
sleepexit(1);
}
- else if (tp.tv_sec - pwd->pw_expire < TWOWEEKS) {
+ else if (tp.tv_sec - pwd->pw_expire < TWOWEEKS && !quietlog) {
ttp = localtime(&pwd->pw_expire);
printf("Warning: your account expires on %s %d, 19%d\n",
months[ttp->tm_mon], ttp->tm_mday, ttp->tm_year);
ttp = localtime(&pwd->pw_expire);
printf("Warning: your account expires on %s %d, 19%d\n",
months[ttp->tm_mon], ttp->tm_mday, ttp->tm_year);
- quietlog = access(_PATH_HUSHLOGIN, F_OK) == 0;
dolastlog(quietlog);
if (!hflag) { /* XXX */
dolastlog(quietlog);
if (!hflag) { /* XXX */