Bugzilla – Attachment 3172 Details for
Bug 2899
scp remote-to-remote does not work with IPv6 addresses anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
file_2899.txt (text/plain), 536 bytes, created by
Jakub Jelen
on 2018-08-25 01:24:46 AEST
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2018-08-25 01:24:46 AEST
Size:
536 bytes
patch
obsolete
>diff --git a/scp.c b/scp.c >index 60682c68..9344806e 100644 >--- a/scp.c >+++ b/scp.c >@@ -714,7 +714,9 @@ toremote(int argc, char **argv) > addargs(&alist, "%s", host); > addargs(&alist, "%s", cmd); > addargs(&alist, "%s", src); >- addargs(&alist, "%s%s%s:%s", >+ addargs(&alist, >+ /* IPv6 address needs to be enclosed with sqare brackets */ >+ strchr(host, ':') != NULL ? "%s%s[%s]:%s" : "%s%s%s:%s", > tuser ? tuser : "", tuser ? "@" : "", > thost, targ); > if (do_local_cmd(&alist) != 0)
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 2899
: 3172