[Bug 8198] rsync does not set TZ variable after chroot(), which confuses logging timestamps

samba-bugs at samba.org samba-bugs at samba.org
Sat Jun 4 10:37:15 MDT 2011


Wayne Davison <wayned at samba.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #4 from Wayne Davison <wayned at samba.org> 2011-06-04 16:37:15 UTC ---
I do think that if the chroot call doesn't find a new timezone setup, that it
should leave things alone.  That is how things have always worked before, and
supports minimal chroot areas better.  So, fundamentally, I think this is a
glibc issue.

A user should be able to work around this by setting their own TZ string before
starting up the daemon.  For instance, I have sometimes used this TZ for other

export TZ=PST8PDT

Note that this setting fully supports daylight savings time changes.  If rsync
were tweaked to set a TZ var, it would be nice if it could construct such an
all-encompassing export, but that does seem rather complex to try to code up,
and is probably more trouble than it's worth.

So, I'm not particularly liking the TZ idea, especially since a user affected
by a buggy libc has an easy way to configure this externally to rsync.

Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the rsync mailing list