From acffd5a5a07666389aa8ce122565c2b508ab84d7 Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Sun, 28 Jul 1996 06:04:11 +0000 Subject: FreeBSD PR#1182: fix date wtmp log entries. --- usr.sbin/timed/timed/master.c | 6 ++++-- usr.sbin/timed/timed/slave.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/timed/timed/master.c b/usr.sbin/timed/timed/master.c index 51f8f407306..0a5a60b5d36 100644 --- a/usr.sbin/timed/timed/master.c +++ b/usr.sbin/timed/timed/master.c @@ -1,3 +1,5 @@ +/* $OpenBSD: master.c,v 1.3 1996/07/28 06:04:09 downsj Exp $ */ + /*- * Copyright (c) 1985, 1993 The Regents of the University of California. * All rights reserved. @@ -36,7 +38,7 @@ static char sccsid[] = "@(#)master.c 5.1 (Berkeley) 5/11/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.2 $" +#ident "$Revision: 1.3 $" #endif #include "globals.h" @@ -397,7 +399,7 @@ mchgdate(struct tsp *msg) tmptv.tv_sec = msg->tsp_time.tv_sec; tmptv.tv_usec = msg->tsp_time.tv_usec; (void)settimeofday(&tmptv, 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 6076a94f483..331da53706d 100644 --- a/usr.sbin/timed/timed/slave.c +++ b/usr.sbin/timed/timed/slave.c @@ -1,3 +1,5 @@ +/* $OpenBSD: slave.c,v 1.3 1996/07/28 06:04:10 downsj Exp $ */ + /*- * Copyright (c) 1985, 1993 The Regents of the University of California. * All rights reserved. @@ -36,7 +38,7 @@ static char sccsid[] = "@(#)slave.c 5.1 (Berkeley) 5/11/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.2 $" +#ident "$Revision: 1.3 $" #endif #include "globals.h" @@ -298,7 +300,7 @@ loop: tmptv.tv_sec = msg->tsp_time.tv_sec; tmptv.tv_usec = msg->tsp_time.tv_usec; (void)settimeofday(&tmptv, 0); - logwtmp("}", "date", ""); + logwtmp("{", "date", ""); #endif /* sgi */ syslog(LOG_NOTICE, "date changed by %s from %s", -- cgit v1.2.3