diff options
author | Wayne Davison <wayned@samba.org> | 2006-09-18 01:19:26 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-09-18 01:19:26 +0000 |
commit | ff1b9344c965a6dcad791a58024fb5886ae0637e (patch) | |
tree | c8aa18bfae9dc357c76ad68d4c976f215c13dbdd /options.c | |
parent | a923437bc02db7a91a5bca81e047671e5971531c (diff) | |
download | rsync-ff1b9344c965a6dcad791a58024fb5886ae0637e.tar.gz |
When parsing a literal IPv6 address in square brackets, pass the
whole string (including the brackets) to the remote shell. (The
old code stripped the leading '[' but left the trailing ']'.)
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1811,7 +1811,6 @@ char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr) } if (*s == '[' && (p = strchr(s, ']')) != NULL && p[1] == ':') { - s++; *p = '\0'; not_host = strchr(s, '/') || !strchr(s, ':'); *p = ']'; |