01.06.2011 14:06, samba-b...@samba.org пишет: > 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:
> Attached patch fixes this issue by caching current timezone and setting TZ > variable after chroot() call. tzset() call before chroot should be enough for that -- that's what has always been done in chroot programs exactly for this purpose (tzset was broken in glibc at least once, but that's details). /mjt -- 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