Bugzilla – Attachment 3273 Details for
Bug 2999
Sftp login failed by sftp user@[ip] in openssh 7.9
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Check for user@host when parsing sftp target.
sftp-host-squarebracket.patch (text/plain), 848 bytes, created by
Darren Tucker
on 2019-04-29 09:11:45 AEST
(
hide
)
Description:
Check for user@host when parsing sftp target.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2019-04-29 09:11:45 AEST
Size:
848 bytes
patch
obsolete
>Index: sftp.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/sftp.c,v >retrieving revision 1.190 >diff -u -p -r1.190 sftp.c >--- sftp.c 21 Jan 2019 22:50:42 -0000 1.190 >+++ sftp.c 28 Apr 2019 22:57:10 -0000 >@@ -2478,12 +2478,17 @@ main(int argc, char **argv) > port = tmp; > break; > default: >+ /* Try with user, host and path. */ > if (parse_user_host_path(*argv, &user, &host, >- &file1) == -1) { >- /* Treat as a plain hostname. */ >- host = xstrdup(*argv); >- host = cleanhostname(host); >- } >+ &file1) == 0) >+ break; >+ /* Try without path. */ >+ if (parse_user_host_port(*argv, &user, &host, NULL) >+ == 0) >+ break; >+ /* Treat as a plain hostname. */ >+ host = xstrdup(*argv); >+ host = cleanhostname(host); > break; > } > file2 = *(argv + 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
Flags:
djm
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2999
: 3273