Projects
Mega:23.09
openssh
_service:tar_scm:openssh-7.8p1-scp-ipv6.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:openssh-7.8p1-scp-ipv6.patch of Package openssh
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)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2