diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-18 16:56:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-18 16:56:32 +0000 |
commit | 8a8dcce4e8772639980be3759a292a2e7eef06fb (patch) | |
tree | b9bc69a68550bee9d2d1abec4e342c45d004abc3 /usr.sbin | |
parent | 28f853cd05e4830d141c0039d25ef7da3d5741f8 (diff) |
Call tzset() to stash the current timezone before we chroot.
OK deraadt@ and avsm@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index ae1c867b1d7..89f13653223 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.65 2003/07/31 18:20:07 avsm Exp $ */ +/* $OpenBSD: syslogd.c,v 1.66 2003/08/18 16:56:31 millert Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #else -static const char rcsid[] = "$OpenBSD: syslogd.c,v 1.65 2003/07/31 18:20:07 avsm Exp $"; +static const char rcsid[] = "$OpenBSD: syslogd.c,v 1.66 2003/08/18 16:56:31 millert Exp $"; #endif #endif /* not lint */ @@ -365,6 +365,8 @@ main(int argc, char *argv[]) chdir("/"); + tzset(); + if (!Debug) { char c; |