Incorrect time again with glibc 2.5

Matt McCutchen hashproduct+rsync at gmail.com
Mon Feb 12 22:24:27 GMT 2007


On 2/12/07, Master Abi <master at lavacoms.com> wrote:
> rsync 2.6.9 fixed the time issue. I felt this issue is truly behind, but
> then I upgraded to glibc 2.5. The time problem again started.  I
> recompiled rsync after upgrading glibc thinking that might be the
> problem. No  ways, problem still persists.

> This might be gentoo related, so are anyone else also having this issue
> with glibc 2.5.

I can reproduce the time problem on my computer with Fedora Core 6 and
glibc 2.5.  Attached is a file of excerpts from the daemon's strace.
It looks like glibc is trying to be clever by statting /etc/localtime
on every call to strftime in case the time zone setting has changed.
If /etc/localtime disappears, glibc reverts to GMT.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daemon-time.strace
Type: application/octet-stream
Size: 7167 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20070212/30425012/daemon-time.obj


More information about the rsync mailing list