http://bugzilla.mindrot.org/show_bug.cgi?id=828 Summary: date overflow with scp -p Product: Portable OpenSSH Version: 3.7.1p2 Platform: ix86 OS/Version: Linux Status: NEW Severity: minor Priority: P3 Component: scp AssignedTo: openssh-bugs at mindrot.org ReportedBy: throw_away_2002 at yahoo.com (noticed same behavior with openssh 3.8p1 via Cygwin on W2K and openssh 3.7.1p2 on a Linux machine - both cases copying files FROM a Linux machine running 3.7.1p2) Attempted to copy a file from a Linux machine with a (legal) pre-1970 date (don't ask me WHY I have files with those dates :) ) using scp -p to preserve the date. In both cases the file arrived intact, but had a date in January 2038 (which I recognized as the highest possible 32-bit value). ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
http://bugzilla.mindrot.org/show_bug.cgi?id=828 ------- Additional Comments From dtucker at zip.com.au 2004-04-01 12:15 ------- Created an attachment (id=588) --> (http://bugzilla.mindrot.org/attachment.cgi?id=588&action=view) Truncate pre-epoch timestamps in scp, add debugging Does the rcp/scp protocol even permit times before the epoch? If not, the best we can do is truncate the date to the epoch as per the attached patch. I added a bit more detail in the debugging: $ ./scp -vp /mnt/tmp/file localhost:/tmp/ [...] File mtime -100000 atime 1080785365 Sending file timestamps: T0 0 1080785365 0 Sending file modes: C0664 2323 file ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.