diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ac/ac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index d6db2d8..c584cd4 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -583,10 +583,11 @@ ac(const char *file) endutxent(); if (!(Flags & AC_W)) usht.ut_tv.tv_sec = time(NULL); + else + usht.ut_tv.tv_sec = ut_timecopy;; usht.ut_type = SHUTDOWN_TIME; if (Flags & AC_D) { - ut_timecopy = usht.ut_tv.tv_sec; ltm = localtime(&ut_timecopy); if (day >= 0 && day != ltm->tm_yday) { /* |