ports/116455: ftp/tftp-hpa's syslog timestamp is not localtime.
Hiroshi Fujishima
hirobo at tonteki.org
Wed Sep 19 04:50:02 UTC 2007
>Number: 116455
>Category: ports
>Synopsis: ftp/tftp-hpa's syslog timestamp is not localtime.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 19 04:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Hiroshi Fujishima
>Release: 6.2-RELEASE
>Organization:
>Environment:
>Description:
When running in.tftpd with -v argument, the syslog output of in.tftpd have UTC (not localtime) timestamp.
>How-To-Repeat:
>Fix:
put the follwing patch to files directory.
--- tftpd/tftpd.c~ Wed Jan 31 08:51:05 2007
+++ tftpd/tftpd.c Wed Sep 19 13:25:20 2007
@@ -303,6 +303,7 @@
p = strrchr(argv[0], '/');
__progname = (p && p[1]) ? p+1 : argv[0];
+ tzset(); /* syslog in localtime */
openlog(__progname, LOG_PID|LOG_NDELAY, LOG_DAEMON);
srand(time(NULL) ^ getpid());
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list