Bugzilla – Attachment 172 Details for
Bug 428
sftp could use a command to transfer symlinks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
implement the getlink command
44 (text/plain), 767 bytes, created by
gfernandez
on 2002-11-07 01:46:07 AEDT
(
hide
)
Description:
implement the getlink command
Filename:
MIME Type:
Creator:
gfernandez
Created:
2002-11-07 01:46:07 AEDT
Size:
767 bytes
patch
obsolete
>diff -u ../openssh-3.4p1/sftp-server.c . >--- ../openssh-3.4p1/sftp-server.c Tue Jun 25 19:21:41 2002 >+++ ./sftp-server.c Tue Nov 5 10:42:49 2002 >@@ -907,9 +941,18 @@ > send_status(id, errno_to_portable(errno)); > else { > Stat s; >- >+ struct stat st; >+ int status; > link[len] = '\0'; > attrib_clear(&s.attrib); >+ >+ status = lstat(path, &st); >+ if (status == 0) { >+ stat_to_attrib(&st, &s.attrib); >+ } >+ else { >+ send_status(id, errno_to_portable(errno)); >+ } > s.name = s.long_name = link; > send_names(id, 1, &s); > }
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 428
:
168
|
169
|
170
|
171
| 172