[syslinux] tftpd-hpa reports a wrong date

H. Peter Anvin hpa at zytor.com
Thu Oct 16 09:10:59 PDT 2003


Alexandre Aractingi wrote:
> Hi, I have a weirdness with tftpd-hpa, it seems to report a wrong date
> in the syslog (2 hours early):
> 
> root at sup01 > tail -f /var/log/syslog
> Oct 16 11:26:52 sup01 last message repeated 11 times
> Oct 16 11:28:06 sup01 ucd-snmp[425]: Connection from 62.210.191.157 
> Oct 16 09:28:33 sup01 in.tftpd[14495]: RRQ from 10.8.1.222 filename
> update.cfg
> Oct 16 11:30:01 sup01 /USR/SBIN/CRON[14521]: (root) CMD
> (/root/bin/mrtg_monitor.sh >> /var/log/mrtg/mrtg_monitor.log 2>&1)
> 
> root at sup01 > date
> Thu Oct 16 11:35:40 CEST 2003
> 
> Isn't it weird that it doesn't get the system date? Can I force it to do
> so? Thanks,
> 

For some reason tftp-hpa doesn't know what the local timezone is, and is 
therefore reporting the time in UTC.  If you're using TZ to set the 
timezone (as opposed to /etc/localtime), then make sure that daemon 
processes see it as well.

Unfortunately the timestamps in syslog are generated in local time by 
the processes, instead of in Unix time (UTC).  This is one of many flaws 
in the syslog protocol.

	-hpa




More information about the Syslinux mailing list