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:
phk 1996-10-21 19:51:34 +00:00
parent b647589535
commit edf93e27ef

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 */