summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-05-18 05:46:40 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-05-18 05:46:40 +0000
commit5de20e57b23d06ab0745a8c34915e7d0a0b6a03c (patch)
tree784d66e6c05bca3152d0e32953304b56ee50798e
parent91a72a92d68229d0522ab9b5ec624d8ff4286272 (diff)
Notes
-rw-r--r--usr.bin/login/login.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index ef5fa861dbe8..91423089e7fe 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);
}