Bugzilla – Attachment 2001 Details for
Bug 1869
ssh-add can no longer read from FIFOs as of 5.7p1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allow ssh-add to read from FIFOs
let-ssh-add-read-from-fifos.diff (text/plain), 836 bytes, created by
Daniel Kahn Gillmor
on 2011-02-24 14:20:57 AEDT
(
hide
)
Description:
allow ssh-add to read from FIFOs
Filename:
MIME Type:
Creator:
Daniel Kahn Gillmor
Created:
2011-02-24 14:20:57 AEDT
Size:
836 bytes
patch
obsolete
>=== modified file 'authfile.c' >--- authfile.c 2011-01-24 12:43:25 +0000 >+++ authfile.c 2011-02-24 03:11:53 +0000 >@@ -317,7 +317,7 @@ > static int > key_load_file(int fd, const char *filename, Buffer *blob) > { >- size_t len; >+ size_t len,readcount; > u_char *cp; > struct stat st; > >@@ -337,11 +337,14 @@ > return 0; > } > len = (size_t)st.st_size; /* truncated */ >+ if (0 == len && st.st_mode & S_IFIFO) >+ len = 8192; /* we will try reading up to 8KiB from a FIFO */ > > buffer_init(blob); > cp = buffer_append_space(blob, len); > >- if (atomicio(read, fd, cp, len) != len) { >+ readcount = atomicio(read, fd, cp, len); >+ if (readcount != len && !(readcount > 0 && (st.st_mode & S_IFIFO))) { > debug("%s: read from key file %.200s%sfailed: %.100s", __func__, > filename == NULL ? "" : filename, > filename == NULL ? "" : " ", >
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 1869
:
2001
|
2002