unset TZ from the environment so the timestamp gets the system default,

which is what syslogd presumably uses too.  Notice that the "protocol"
is bogus in not defining the timezone. "protocol" because it hardly
deserves the name :-)

closes bin/1739

Reported by:	Stefan Zehl <sec@wg.camelot.de>
This commit is contained in:
Poul-Henning Kamp 1996-10-21 19:51:34 +00:00
parent c650708207
commit 40244c2859

View File

@ -72,6 +72,7 @@ main(argc, argv)
tag = NULL;
pri = LOG_NOTICE;
logflags = 0;
unsetenv("TZ");
while ((ch = getopt(argc, argv, "f:ip:st:")) != EOF)
switch((char)ch) {
case 'f': /* file to log */