[Bug 2607] Rsync logging time incorrectly

samba-bugs at samba.org samba-bugs at samba.org
Thu Apr 14 16:50:52 GMT 2005


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


wayned at samba.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From wayned at samba.org  2005-04-14 09:50 -------
You don't mention if you're using syslog() or direct-to-file logging.  Also, I
assume you have chroot enabled.

Rsync makes sure that it calls localtime() before it calls chroot(), so this
should ensure that it has loaded the local timezone before all the /etc files
vanish via chroot().  In the syslog case, the timestamp is out of rsync's
control, but rsync does also call openlog() before it calls chroot().

If you're using syslog, is syslogd running?

If the problem is a direct-to-file logging, try running a program that just
calls localtime() on a time_t of the current time, calls chroot(), and then
calls strftime().  If that has the same timezone problem, it would be good to
file a bug report with your C library provider.

Another work-around might be to set TZ in your environment (e.g. TZ=PST8PDT).

This all works fine for me under Debian Sarge (with or without TZ set).

Let me know if you can't figure out what's wrong.

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


More information about the rsync mailing list