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

samba-bugs at samba.org samba-bugs at samba.org
Wed Jun 1 04:06:18 MDT 2011


https://bugzilla.samba.org/show_bug.cgi?id=8198

           Summary: rsync does not set TZ variable after chroot(), which
                    confuses logging timestamps
           Product: rsync
           Version: 3.1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: jkaluza at redhat.com
         QAContact: rsync-qa at samba.org


Hi,
after chroot(), "current" timezone is changed in chrooted process which leads
to the following output in logs:

May 29 20:00:35 nec-em12 rsyncd[9770]: connect from localhost.localdomain
(127.0.0.1) 
May 29 20:00:35 nec-em12 rsyncd[9770]: rsync to my_data/ from
localhost.localdomain (127.0.0.1) 
May 30 00:00:35 nec-em12 rsyncd[9770]: receiving file list 
May 30 00:00:35 nec-em12 rsyncd[9770]: client/ 
May 30 00:00:35 nec-em12 rsyncd[9770]: client/data/

Proper time is 20:00:35.

Attached patch fixes this issue by caching current timezone and setting TZ
variable after chroot() call.

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