Bugzilla – Attachment 588 Details for
Bug 828
date overflow with scp -p
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Truncate pre-epoch timestamps in scp, add debugging
openssh-scp-timestamp.patch (text/plain), 891 bytes, created by
Darren Tucker
on 2004-04-01 12:15:14 AEST
(
hide
)
Description:
Truncate pre-epoch timestamps in scp, add debugging
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2004-04-01 12:15:14 AEST
Size:
891 bytes
patch
obsolete
>Index: scp.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/scp.c,v >retrieving revision 1.125 >diff -u -p -r1.125 scp.c >--- scp.c 24 Nov 2003 02:09:28 -0000 1.125 >+++ scp.c 1 Apr 2004 02:09:18 -0000 >@@ -549,8 +549,13 @@ syserr: run_err("%s: %s", name, strerr > * versions expecting microseconds. > */ > (void) snprintf(buf, sizeof buf, "T%lu 0 %lu 0\n", >- (u_long) stb.st_mtime, >- (u_long) stb.st_atime); >+ (u_long) (stb.st_mtime < 0 ? 0 : stb.st_mtime), >+ (u_long) (stb.st_atime < 0 ? 0 : stb.st_atime)); >+ if (verbose_mode) { >+ fprintf(stderr, "File mtime %ld atime %ld\n", stb.st_mtime, >+ stb.st_atime); >+ fprintf(stderr, "Sending file timestamps: %s", buf); >+ } > (void) atomicio(vwrite, remout, buf, strlen(buf)); > if (response() < 0) > goto next;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
djm
:
ok+
Actions:
View
|
Diff
Attachments on
bug 828
: 588 |
1294