RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 904135 - Time in file listing with --list-only option is inconsistent wheather dst is given or not
Summary: Time in file listing with --list-only option is inconsistent wheather dst is...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rsync
Version: 6.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Ruprich
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 918399
TreeView+ depends on / blocked
 
Reported: 2013-01-25 14:32 UTC by Michal Trunecka
Modified: 2017-09-06 08:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 918399 (view as bug list)
Environment:
Last Closed: 2017-09-06 08:59:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michal Trunecka 2013-01-25 14:32:46 UTC
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@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.6-9.el6.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)

Comment 1 Michal Trunecka 2013-01-25 14:38:13 UTC
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

Comment 3 RHEL Program Management 2013-10-14 00:02:05 UTC
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 unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 9 Tomáš Hozza 2017-09-06 08:59:39 UTC
See Bug #918399 comment #9


Note You need to log in before you can comment on or make changes to this bug.