Bugzilla – Attachment 747 Details for
Bug 943
sftp will not send from a named pipe
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allow upload/download from fifo
sftp-fifo.diff (text/plain), 766 bytes, created by
Damien Miller
on 2004-12-06 17:22:00 AEDT
(
hide
)
Description:
allow upload/download from fifo
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2004-12-06 17:22:00 AEDT
Size:
766 bytes
patch
obsolete
>Index: sftp-client.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/sftp-client.c,v >retrieving revision 1.52 >diff -u -r1.52 sftp-client.c >--- sftp-client.c 25 Nov 2004 22:22:14 -0000 1.52 >+++ sftp-client.c 6 Dec 2004 06:24:47 -0000 >@@ -770,7 +770,7 @@ > mode = 0666; > > if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) && >- (!S_ISREG(a->perm))) { >+ !S_ISREG(a->perm) && !S_ISFIFO(a->perm)) { > error("Cannot download non-regular file: %s", remote_path); > return(-1); > } >@@ -1005,7 +1005,7 @@ > close(local_fd); > return(-1); > } >- if (!S_ISREG(sb.st_mode)) { >+ if (!S_ISREG(sb.st_mode) && !S_ISFIFO(sb.st_mode)) { > error("%s is not a regular file", local_path); > close(local_fd); > return(-1);
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 943
: 747