Bugzilla – Attachment 1846 Details for
Bug 1768
scp: wrong error message when destination directory ends with a slash and is missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
set targetshouldbedirectory if there are two file arguments and argv[1] ends with a slash
scp-trailing-slash.patch (text/plain), 307 bytes, created by
Colin Watson
on 2010-05-10 06:36:19 AEST
(
hide
)
Description:
set targetshouldbedirectory if there are two file arguments and argv[1] ends with a slash
Filename:
MIME Type:
Creator:
Colin Watson
Created:
2010-05-10 06:36:19 AEST
Size:
307 bytes
patch
obsolete
>=== modified file 'scp.c' >--- scp.c 2010-01-08 07:53:43 +0000 >+++ scp.c 2010-05-09 16:46:21 +0000 >@@ -417,7 +417,7 @@ main(int argc, char **argv) > } > if (argc < 2) > usage(); >- if (argc > 2) >+ if (argc > 2 || argv[1][strlen(argv[1]) - 1] == '/') > targetshouldbedirectory = 1; > > remin = remout = -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 1768
: 1846 |
2523
|
2524
|
2526