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: way...@samba.org
        ReportedBy: jkal...@redhat.com
         QAContact: rsync...@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.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to