Bugzilla – Attachment 1294 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]
equivalent change for rcp
openbsd-rcp-times.patch (text/plain), 749 bytes, created by
Darren Tucker
on 2007-05-20 16:23:59 AEST
(
hide
)
Description:
equivalent change for rcp
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2007-05-20 16:23:59 AEST
Size:
749 bytes
patch
obsolete
>Index: rcp.c >=================================================================== >RCS file: /cvs/src/bin/rcp/rcp.c,v >retrieving revision 1.46 >diff -u -p -r1.46 rcp.c >--- rcp.c 20 Mar 2007 18:50:11 -0000 1.46 >+++ rcp.c 20 May 2007 06:10:00 -0000 >@@ -446,9 +446,9 @@ syserr: > * Make it compatible with possible future > * versions expecting microseconds. > */ >- (void)snprintf(buf, sizeof(buf), "T%ld 0 %ld 0\n", >- (long)stb.st_mtimespec.tv_sec, >- (long)stb.st_atimespec.tv_sec); >+ (void)snprintf(buf, sizeof(buf), "T%lu 0 %lu 0\n", >+ (u_long) (stb.st_mtime < 0 ? 0 : stb.st_mtime), >+ (u_long) (stb.st_atime < 0 ? 0 : stb.st_atime)); > (void)write(rem, 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
Actions:
View
|
Diff
Attachments on
bug 828
:
588
| 1294