diff options
author | steve <steve@FreeBSD.org> | 1998-05-25 05:21:29 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-05-25 05:21:29 +0000 |
commit | 73c3aa98abf0b6a61d9695f2e3ff459be44e2c3b (patch) | |
tree | cde9b07ab58c0fc1e4fcc36e12d276f34e527972 | |
parent | b273678ed229c68dd7202152bcc23af88f3a7a83 (diff) | |
download | FreeBSD-src-73c3aa98abf0b6a61d9695f2e3ff459be44e2c3b.zip FreeBSD-src-73c3aa98abf0b6a61d9695f2e3ff459be44e2c3b.tar.gz |
Give correct times with old wtmp files.
PR: 4732
Submitted by: Andrew Timonin <tim@pool1.convey.ru>
-rw-r--r-- | usr.sbin/ac/ac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index f59cf37..2e8d0e8 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -15,7 +15,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: ac.c,v 1.8 1997/09/01 06:11:40 charnier Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -517,7 +517,8 @@ ac(fp) } } (void)fclose(fp); - usr.ut_time = time((time_t *)0); + if (!(Flags & AC_W)) + usr.ut_time = time((time_t *)0); (void)strcpy(usr.ut_line, "~"); if (Flags & AC_D) { |