diff options
author | scrappy <scrappy@FreeBSD.org> | 1996-10-22 05:13:42 +0000 |
---|---|---|
committer | scrappy <scrappy@FreeBSD.org> | 1996-10-22 05:13:42 +0000 |
commit | 5624ede1e3eb8dcc90fa074f2e55aa134a6f96fe (patch) | |
tree | afb5f07b0132746a625cbdb390598206545792ff /usr.sbin/timed | |
parent | cc11d2ef51aa33a4eb61d83f6d75b90daed22aa2 (diff) | |
download | FreeBSD-src-5624ede1e3eb8dcc90fa074f2e55aa134a6f96fe.zip FreeBSD-src-5624ede1e3eb8dcc90fa074f2e55aa134a6f96fe.tar.gz |
Fixes:
If timed is running when system clock is changed by date command,
improper wtmp entry is made. According to wtmp(5), two entries, one
with "|" as ut_line field and one with "{" for ut_line, should be
recorded, but, one with "|" and one with "}" are made.
Closes: PR#bin/1182
Submitted by: Masafumi NAKANE <masafumi@tky007.tth.expo96.ad.jp>
Diffstat (limited to 'usr.sbin/timed')
-rw-r--r-- | usr.sbin/timed/timed/master.c | 4 | ||||
-rw-r--r-- | usr.sbin/timed/timed/slave.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/timed/timed/master.c b/usr.sbin/timed/timed/master.c index 3397173..1de737d 100644 --- a/usr.sbin/timed/timed/master.c +++ b/usr.sbin/timed/timed/master.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)master.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.21 $" +#ident "$Revision: 1.1.1.1 $" #endif #include "globals.h" @@ -390,7 +390,7 @@ mchgdate(msg) #else logwtmp("|", "date", ""); (void)settimeofday(&msg->tsp_time, 0); - logwtmp("}", "date", ""); + logwtmp("{", "date", ""); #endif /* sgi */ spreadtime(); } diff --git a/usr.sbin/timed/timed/slave.c b/usr.sbin/timed/timed/slave.c index 3bb6d85..7c71d7a 100644 --- a/usr.sbin/timed/timed/slave.c +++ b/usr.sbin/timed/timed/slave.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)slave.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.20 $" +#ident "$Revision: 1.1.1.1 $" #endif #include "globals.h" @@ -294,7 +294,7 @@ loop: #else logwtmp("|", "date", ""); (void)settimeofday(&msg->tsp_time, 0); - logwtmp("}", "date", ""); + logwtmp("{", "date", ""); #endif /* sgi */ syslog(LOG_NOTICE, "date changed by %s from %s", |