From 8c78c8f41c503e7c63a1f00d3da6eee7f27386a5 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Tue, 22 Oct 1996 05:13:42 +0000 Subject: [PATCH] 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 --- usr.sbin/timed/timed/master.c | 4 ++-- 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 3397173eadab..1de737da8d3b 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 3bb6d85aff72..7c71d7ab4985 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",