https://bugzilla.samba.org/show_bug.cgi?id=10772
           Summary: Bad time logging as daemon
           Product: rsync
           Version: 3.1.1
          Platform: x64
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: davegradwell at yahoo.co.uk
         QAContact: rsync-qa at samba.org
When the rsync daemon logs, it fails to determine the correct time:
2014/08/18 18:47:24 [1002] connect from localhost (::1)
2014/08/18 17:47:24 [1003] rsync to dave/in-progress/data/ from dave at
localhost
(::1)
When I specify use chroot = false in the rsyncd.conf, it logs the time
correctly:
2014/08/18 19:21:32 [1138] connect from localhost (::1)
2014/08/18 19:21:32 [1139] rsync to dave/in-progress/data/ from dave at
localhost
(::1)
-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=10772
Wayne Davison <wayned at samba.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
--- Comment #1 from Wayne Davison <wayned at samba.org> 2014-08-22
05:41:33 UTC ---
There's nothing more rsync can do about this.  It always calls a time
function
prior to going into the chroot, but if your OS decides to re-check the time
files after that, you'll need to either supply those files in the chroot, or
live with the alternate timezone.  See the rsyncd.conf manpage for how to setup
a deeper dir in a chroot that doesn't allow the user to see the chrooted
timezone files (e.g. "Path = /chroot/./copy-dir" allows you to create
/chroot/etc that the user can't get to) and/or the exclude option (in the
config file).
-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=10772 --- Comment #2 from Paul Slootman <paul at debian.org> 2014-08-22 14:55:03 UTC --- Perhaps rsync should instead of calling a time function, first determine the offset from UTC that local time is, and then whenever a timestamp is printed first apply that delta and ignore timezones altogether after that. Of course you lose the capability of showing the timezone (apart from [-+]HHMM) but that's not done anyway AFAIK. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Maybe Matching Threads
- [Bug 8198] New: rsync does not set TZ variable after chroot(), which confuses logging timestamps
 - Timezone and date
 - are --temp-dir and --daemon mode compatible options
 - [Bug 2607] Rsync logging time incorrectly
 - [Bug 10799] New: Feature request: detail --dry-run mode when --debug=exit