[PATCH] allow [brackets] around IPv6 literals like scp requires

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



It is difficult to script things when scp requires the brackets but ssh
forbids them.
---
 ssh.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ssh.c b/ssh.c
index 70631c24..7abfe51a 100644
--- a/ssh.c
+++ b/ssh.c
@@ -942,6 +942,9 @@ main(int ac, char **av)
 	if (!host)
 		usage();
 
+	/* Allow [brackets] around IPv6 addresses for consistency with scp. */
+	host = cleanhostname(host);
+
 	host_arg = xstrdup(host);
 
 #ifdef WITH_OPENSSL
-- 
2.13.0

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux