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:
parent
b647589535
commit
edf93e27ef
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user