Bugzilla – Attachment 1964 Details for
Bug 439
key_try_load_public() always sets pathname as the keyfile's comment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
/home/djm/ssh-authfile-preserve-comments.diff
ssh-authfile-preserve-comments.diff (text/plain), 615 bytes, created by
Damien Miller
on 2010-11-24 11:34:54 AEDT
(
hide
)
Description:
/home/djm/ssh-authfile-preserve-comments.diff
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2010-11-24 11:34:54 AEDT
Size:
615 bytes
patch
obsolete
>Index: authfile.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/authfile.c,v >retrieving revision 1.86 >diff -u -p -r1.86 authfile.c >--- authfile.c 21 Nov 2010 10:57:07 -0000 1.86 >+++ authfile.c 24 Nov 2010 00:28:59 -0000 >@@ -725,8 +725,11 @@ key_try_load_public(Key *k, const char * > ; > if (*cp) { > if (key_read(k, &cp) == 1) { >- if (commentp) >- *commentp=xstrdup(filename); >+ cp[strcspn(cp, "\r\n")] = '\0'; >+ if (commentp) { >+ *commentp = xstrdup(*cp ? >+ cp : filename); >+ } > fclose(f); > 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 439
:
178
|
296
| 1964