Call tzset() to init TZ information for localtime().

This commit is contained in:
blymn 2008-11-04 10:01:56 +00:00
parent 631af3647b
commit d08a89fb84
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: syslogd.c,v 1.89 2008/11/03 22:59:51 christos Exp $ */
/* $NetBSD: syslogd.c,v 1.90 2008/11/04 10:01:56 blymn Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\
#if 0
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
__RCSID("$NetBSD: syslogd.c,v 1.89 2008/11/03 22:59:51 christos Exp $");
__RCSID("$NetBSD: syslogd.c,v 1.90 2008/11/04 10:01:56 blymn Exp $");
#endif
#endif /* not lint */
@ -388,6 +388,7 @@ main(int argc, char *argv[])
usage();
setlinebuf(stdout);
tzset(); /* init TZ information for localtime. */
if (user != NULL) {
if (isdigit((unsigned char)*user)) {