Bugzilla – Attachment 238 Details for
Bug 485
scp doesn't preserve symbolic links
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Make scp skip symlinks
scp-skip-links.diff (text/plain), 464 bytes, created by
Damien Miller
on 2003-02-24 13:19:45 AEDT
(
hide
)
Description:
Make scp skip symlinks
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2003-02-24 13:19:45 AEDT
Size:
464 bytes
patch
obsolete
>Index: scp.c >=================================================================== >RCS file: /var/cvs/openssh/scp.c,v >retrieving revision 1.108 >diff -u -r1.108 scp.c >--- scp.c 24 Feb 2003 00:52:59 -0000 1.108 >+++ scp.c 24 Feb 2003 02:18:21 -0000 >@@ -515,7 +515,7 @@ > } > if ((fd = open(name, O_RDONLY, 0)) < 0) > goto syserr; >- if (fstat(fd, &stb) < 0) { >+ if (lstat(name, &stb) < 0) { > syserr: run_err("%s: %s", name, strerror(errno)); > 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 485
: 238