bugzilla-daemon at mindrot.org
2013-May-16 15:04 UTC
[Bug 2106] New: When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Bug ID: 2106
Summary: When TZ isn't explicitly set ls can give different
time stamps
Classification: Unclassified
Product: Portable OpenSSH
Version: 5.3p1
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: sftp
Assignee: unassigned-bugs at mindrot.org
Reporter: dave.clarke at hfit.com
When I do an ls -ltr with no arguments I get a listing for a file
saying something like
sftp> ls -ltr
:
-rw-rw-rw- 1 user group 10466 May 14 20:42 P1.XXXX
:
However when I list the file explicitly
sftp> ls -ltr P1.XXXXX
-rw-rw-rw- 0 0 0 10466 May 14 15:42 P1.XXXXX
sftp> ls -l P1.XXXXX
-rw-rw-rw- 0 0 0 10466 May 14 15:42 P1.XXXXX
The SFTP Server and Client are both in CDT timezone though the TZ
environment variable isn't set and the 20:42 is obviously the UT time
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2013-Jun-03 20:25 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker at zip.com.au
Blocks| |2076
--- Comment #1 from Darren Tucker <dtucker at zip.com.au> ---
reproduced with 6.2p2.
also the uid->name lookups and link counts are broken in the second
example.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2013-Jul-12 00:56 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
Created attachment 2312
--> https://bugzilla.mindrot.org/attachment.cgi?id=2312&action=edit
call tzset() for sftp-server and before chroot in sshd
The difference between "ls -ltr" and "ls -ltr FILENAME" is
that the
first uses the longname from the server and the second synthesises the
line on the client.
uid->name and link counts aren't supported by our dialect of the sftp
protocol. They are only listed in the "longname" element in the sftp
dirent struct, so they are expected to be wrong in the
locally-generated version.
The time shouldn't be wrong though - the server generates the
longname's time using localtime() and strftime(). Perhaps it needs a
tzset() first? Someone has reported a similar problem a while ago on
for chrooted sftp and IIRC a similar patch to this helped.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2013-Jul-25 02:18 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |2130
--- Comment #3 from Damien Miller <djm at mindrot.org> ---
Retarget to openssh-6.4
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2013-Jul-25 02:21 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks|2076 |
--- Comment #4 from Damien Miller <djm at mindrot.org> ---
Retarget 6.3 -> 6.4
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2013-Sep-19 01:28 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106 --- Comment #5 from Damien Miller <djm at mindrot.org> --- btw, I'm not going to apply this patch until someone reports that it solves their problems. -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2014-Feb-05 23:18 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |2188
--- Comment #6 from Damien Miller <djm at mindrot.org> ---
Retarget incomplete bugs / feature requests to 6.6 release
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2014-Feb-05 23:20 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks|2130 |
--- Comment #7 from Damien Miller <djm at mindrot.org> ---
Retarget incomplete bugs / feature requests to 6.6 release
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2014-Apr-12 04:49 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |2226
--- Comment #8 from Damien Miller <djm at mindrot.org> ---
Retarget to 6.7 release, since 6.6 was mostly bugfixing.
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Apr-12 04:54 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks|2188 |
--- Comment #9 from Damien Miller <djm at mindrot.org> ---
Remove from 6.6 tracking bug
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Jul-07 08:12 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks|2226 |
--- Comment #10 from Damien Miller <djm at mindrot.org> ---
remove target until someone who can replicate this tests the fine
patch.
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2019-Jan-23 09:16 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
--- Comment #11 from Damien Miller <djm at mindrot.org> ---
No followup for 5 years == no bug
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2020-Feb-14 04:59 UTC
[Bug 2106] When TZ isn't explicitly set ls can give different time stamps
https://bugzilla.mindrot.org/show_bug.cgi?id=2106
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #12 from Damien Miller <djm at mindrot.org> ---
Closing all resolved bug with release of openssh-8.2
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
Apparently Analagous Threads
- [Bug 8198] New: rsync does not set TZ variable after chroot(), which confuses logging timestamps
- [Bug 2052] New: Memory leak when SSH login and logout
- [Bug 2152] New: Simplify handling of sftp(1) command flags
- [Bug 2185] New: Allow entering the PIN via reader pinpad
- Fwd: [musl] strptime() question