Bugzilla – Attachment 1068 Details for
Bug 1157
ssh-keygen doesn't handle DOS line breaks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Handle keys with CR termination only.
openssh-keygen-newline.patch (text/plain), 606 bytes, created by
Darren Tucker
on 2006-02-15 12:36:45 AEDT
(
hide
)
Description:
Handle keys with CR termination only.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2006-02-15 12:36:45 AEDT
Size:
606 bytes
patch
obsolete
>Index: ssh-keygen.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/ssh-keygen.c,v >retrieving revision 1.141 >diff -u -p -r1.141 ssh-keygen.c >--- ssh-keygen.c 29 Nov 2005 02:10:25 -0000 1.141 >+++ ssh-keygen.c 15 Feb 2006 01:31:33 -0000 >@@ -328,7 +328,7 @@ do_convert_from_ssh2(struct passwd *pw) > } > encoded[0] = '\0'; > while (fgets(line, sizeof(line), fp)) { >- if (!(p = strchr(line, '\n'))) { >+ if (!(p = strchr(line, '\n')) || !(p = strchr(line, '\r'))) { > fprintf(stderr, "input line too long.\n"); > exit(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 1157
:
1067
|
1068
|
1069
|
1070
|
1074
|
1078
|
1086
|
1087
|
1091