diff options
author | obrien <obrien@FreeBSD.org> | 2001-05-18 05:46:40 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-05-18 05:46:40 +0000 |
commit | 0e7e1d4adefcbf643aa6ea1b356ef7ab2400c1a6 (patch) | |
tree | 12cd346d23dc3e2df83a9f3342c5e88cc1596e69 /usr.bin/login | |
parent | f45fae89c2a93486556ebb83cd5b2ff3abb1419e (diff) | |
download | FreeBSD-src-0e7e1d4adefcbf643aa6ea1b356ef7ab2400c1a6.zip FreeBSD-src-0e7e1d4adefcbf643aa6ea1b356ef7ab2400c1a6.tar.gz |
Missed a few things.
Diffstat (limited to 'usr.bin/login')
-rw-r--r-- | usr.bin/login/login.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index ef5fa86..9142308 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -420,7 +420,7 @@ main(argc, argv) if (pwd->pw_change || pwd->pw_expire) (void)gettimeofday(&tp, (struct timezone *)NULL); -#define DEFAULT_WARN (2L * 7L * 86400L) /* Two weeks */ +#define DEFAULT_WARN (2L * 7L * 86400L) /* Two weeks */ warntime = login_getcaptime(lc, "warnexpire", DEFAULT_WARN, @@ -438,11 +438,11 @@ main(argc, argv) warntime = login_getcaptime(lc, "warnpassword", DEFAULT_WARN, DEFAULT_WARN); - changepass=0; + changepass = 0; if (pwd->pw_change) { if (tp.tv_sec >= pwd->pw_change) { (void)printf("Sorry -- your password has expired.\n"); - changepass=1; + changepass = 1; syslog(LOG_INFO, "%s Password expired - forcing change", pwd->pw_name); } else if (pwd->pw_change - tp.tv_sec < warntime && !quietlog) @@ -879,6 +879,7 @@ ok_to_export(s) static void usage() { + (void)fprintf(stderr, "usage: login [-fp] [-h hostname] [username]\n"); exit(1); } |