summaryrefslogtreecommitdiffstats
path: root/usr.bin/logger
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-10-21 19:51:34 +0000
committerphk <phk@FreeBSD.org>1996-10-21 19:51:34 +0000
commitedf93e27efa054d7b3d3abf9248baef1d6c9ea2f (patch)
tree3c04cb416d0fb309f2e325072c6bb56841319966 /usr.bin/logger
parentb6475895358f64f460bc7b240ea116e28efe0355 (diff)
downloadFreeBSD-src-edf93e27efa054d7b3d3abf9248baef1d6c9ea2f.zip
FreeBSD-src-edf93e27efa054d7b3d3abf9248baef1d6c9ea2f.tar.gz
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>
Diffstat (limited to 'usr.bin/logger')
-rw-r--r--usr.bin/logger/logger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c
index 3fd3b6b..5cb3409 100644
--- a/usr.bin/logger/logger.c
+++ b/usr.bin/logger/logger.c
@@ -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 */
OpenPOWER on IntegriCloud