Re: tai64nlocal not showing localtime
Mariano Absatz <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 29 Oct 2004 10:09:10 -0400, Paul Jarc <[email protected]> wrote: > Mariano Absatz <[email protected]> wrote: > > I just installed the binary Debian packages for daemontools and djbdns from > > http://smarden.org/pape/Debian/ under Sarge. > > The libc those binaries were linked with may not be quite the same as > your libc. If they're statically linked, they could be looking for > time zone data somewhere other than /usr/share/zoneinfo. Try: > echo @40000000418198e923a9f77c what time is it | \ > TZ=America/Argentina/Buenos_Aires strace tai64nlocal > > See where it's looking for time zone data. [admin@fg:admin 1]# echo @40000000418198e923a9f77c what time is it | TZ=America/Argentina/Buenos_Aires strace tai64nlocal execve("/usr/local/bin/tai64nlocal", ["tai64nlocal"], [/* 18 vars */]) = 0 read(0, "@40000000418198e923a9f77c what t"..., 8192) = 42 open("/etc/localtime", O_RDONLY) = 3 lseek(3, 0, SEEK_END) = 377 old_mmap(NULL, 377, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40000000 close(3) = 0 write(1, "2004-10-29 01:11:59.598341500 wh"..., 462004-10-29 01:11:59.598341500 what time is it ) = 46 read(0, "", 8192) = 0 _exit(0) = ? It's looking in /etc/localtime... I had a symlink like this: /etc/localtime -> /usr/share/zoneinfo/America/Argentina/Buenos_Aires I just thought that that could have been the cause, and I erased the symlink and copied the file, but the result is the same... -- Mariano Absatz - El Baby el (dot) baby (AT) gmail (dot) com el (punto) baby (ARROBA:@) gmail (punto) com