Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2007 04:44:06 GMT
From:      Hiroshi Fujishima <hirobo@tonteki.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/116455: ftp/tftp-hpa's syslog timestamp is not localtime.
Message-ID:  <200709190444.l8J4i6Db001570@www.freebsd.org>
Resent-Message-ID: <200709190450.l8J4o14P011136@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709190444.l8J4i6Db001570>