summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-06-04 21:44:32 +0000
committerSteve Price <steve@FreeBSD.org>1998-06-04 21:44:32 +0000
commitf458046329f00253d49bb4ad8d59b55f29902ed3 (patch)
tree4c93e28ddd0b7344fb62a5a46e4b851664dee9c1 /usr.sbin
parent069bcbca98a686424393b1d99f003fa32b367e6e (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ac/ac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c
index e38368f215de..2b61435dad87 100644
--- a/usr.sbin/ac/ac.c
+++ b/usr.sbin/ac/ac.c
@@ -15,7 +15,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: ac.c,v 1.4.2.2 1997/09/02 06:28:56 charnier Exp $";
+ "$Id: ac.c,v 1.4.2.3 1998/03/09 13:50:19 jkh Exp $";
#endif
#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) {