samba-bugs at samba.org
2013-Dec-19 12:42 UTC
[Bug 10336] New: Time in file listing with --list-only option is inconsistent whether dst is given or not
https://bugzilla.samba.org/show_bug.cgi?id=10336
Summary: Time in file listing with --list-only option is
inconsistent whether dst is given or not
Product: rsync
Version: 3.0.9
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: psimerda at redhat.com
QAContact: rsync-qa at samba.org
(from https://bugzilla.redhat.com/show_bug.cgi?id=918399)
Description of problem:
The modification time of listed files (with --list-only option) is in current
local timezone except the case of using rsync:// protocol. Time in UTC is
listed in such case.
## The current timezone is CET, +1 hour
# date +%Z
CET
# rsync -a --list-only /root/local/ localhost::remote
drwxr-xr-x 4096 2013/01/25 14:06:05 .
-rw-r--r-- 20000000 2013/01/25 14:06:05 bigfile
# rsync -a --list-only /root/local/
drwxr-xr-x 4096 2013/01/25 15:06:05 .
-rw-r--r-- 20000000 2013/01/25 15:06:05 bigfile
#3 rsync -a --list-only /root/local/ localhost:/root/remote
root at localhost's password:
drwxr-xr-x 4096 2013/01/25 15:06:05 .
-rw-r--r-- 20000000 2013/01/25 15:06:05 bigfile
Version-Release number of selected component (if applicable):
rsync-3.0.9-5.el7.x86_64
How reproducible:
always
Steps to Reproduce:
1. set up and run an rsync daemon with some module, e.g. "remote"
2. Run commands and see the different results:
rsync -a --list-only /root/local/
rsync -a --list-only /root/local/ localhost::remote
Actual results:
The listed times differ depending on wheather remote rsync destination is given
or not
Expected results:
Either consistent output (both timestamps in the same timezone) or some note in
help why this happens (in case there is some purpose for this behaviour)
--- Additional comment from Michal Trunecka on 2013-01-25 09:38:13 EST ---
And if the files are actualy transfered with the times listed using
--out-format option, the time is printed also in the local timezone. So only
the listing with remote rsync destination lists the files with UTC timestamps.
# rsync -a --out-format '%n%L %M' /root/local/ localhost::remote
./ 2013/01/25-15:06:05
bigfile 2013/01/25-15:06:05
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
samba-bugs at samba.org
2013-Dec-19 23:05 UTC
[Bug 10336] Time in file listing with --list-only option is inconsistent whether dst is given or not
https://bugzilla.samba.org/show_bug.cgi?id=10336
Wayne Davison <wayned at samba.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Wayne Davison <wayned at samba.org> 2013-12-19
23:05:13 UTC ---
rsync always outputs the time in whatever timezone the process is setup in. If
your ssh login is different from the daemon, you'll get a different output.
You can always change your daemon by tweaking its environment when it is
started (e.g. set TZ), and you can affect a remote-shell run rsync via an
--rsync-path option (e.g. have it set TZ before running rsync). Rsync
doesn't
have a way to export a TZ setting from the client to the server, and I don't
plan to add one.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.