diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-10-02 01:13:25 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-10-02 01:13:25 +0000 |
| commit | f38978765535e8c844371dbcd8e2ae1ace135e08 (patch) | |
| tree | 8f6f73cc41ec340be45959fae67da4c6abec1e21 /openssh-7.8p1-scp-ipv6.patch | |
| parent | 151bd95e0af0e9382ca9065b0d6cc6d62f1ac794 (diff) | |
automatic import of opensshopeneuler20.03
Diffstat (limited to 'openssh-7.8p1-scp-ipv6.patch')
| -rw-r--r-- | openssh-7.8p1-scp-ipv6.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openssh-7.8p1-scp-ipv6.patch b/openssh-7.8p1-scp-ipv6.patch new file mode 100644 index 0000000..8ae0948 --- /dev/null +++ b/openssh-7.8p1-scp-ipv6.patch @@ -0,0 +1,16 @@ +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) + |
