Red Hat Bugzilla – Bug 575022
rsyncd gets confused with timezones when logging to syslog
Last modified: 2015-03-04 18:56:48 EST
+++ This bug was initially created as a clone of Bug #201019 +++
Description of problem:
I'm running rsyncd and it seems to be getting confused with the time-zone when
logging. Here's a typical entry in messages:
Aug 2 09:30:01 rsyncd: rsync on /home from user@host (192.168.0.1)
Aug 2 08:30:01 rsyncd: wrote 2629 bytes read 122 bytes total size 626582
The correct local time is 09:30:01, whereas GMT is 08:30:01. So for some reason
it logs its first entry in local time, then the second entry in GMT. Every other
application logs using local time.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run rsyncd
2. Connect to it and perform some operation
The two log entries generated by rsyncd in messages use different time zones.
The two log entries generated by rsyncd in messages both use local time.
--- Additional comment from email@example.com on 2007-10-21 23:29:59 CEST ---
Same as bug #205326
--- Additional comment from firstname.lastname@example.org on 2007-10-22 09:30:58 CEST ---
*** Bug 205326 has been marked as a duplicate of this bug. ***
--- Additional comment from email@example.com on 2010-03-05 11:04:59 CET ---
Since there is only one more release of RHEL-4 planned and it will be focused on security and performance, I'm planning to close this bug as WONTFIX. Can you please confirm this behavior in RHEL5 or is it solved there?
--- Additional comment from firstname.lastname@example.org on 2010-03-18 19:20:21 CET ---
I'm afraid I no longer have a RHEL system to test this with, but I managed to find this upstream bug, which says that this bug was fixed in rsync 2.6.9:
--- Additional comment from email@example.com on 2010-03-19 08:47:35 CET ---
Thank you very much. It looks like the issue hasn't been fixed in RHEL-5. I'm copying the bug there and closing this one.
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.
This request was erroneously denied for the current release of
Red Hat Enterprise Linux. The error has been fixed and this
request has been re-proposed for the current release.
Created attachment 501951 [details]
This patch fixes the bug by setting TZ variable in chrooted environment (that's needed, because /etc/timezone is not there).
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.