Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a923437
)
When parsing a literal IPv6 address in square brackets, pass the
author
Wayne Davison
<wayned@samba.org>
Mon, 18 Sep 2006 01:19:26 +0000
(
01:19
+0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 18 Sep 2006 01:19:26 +0000
(
01:19
+0000)
whole string (including the brackets) to the remote shell. (The
old code stripped the leading '[' but left the trailing ']'.)
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
4a5c65c
..
ec57901
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-1811,7
+1811,6
@@
char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr)
}
if (*s == '[' && (p = strchr(s, ']')) != NULL && p[1] == ':') {
}
if (*s == '[' && (p = strchr(s, ']')) != NULL && p[1] == ':') {
- s++;
*p = '\0';
not_host = strchr(s, '/') || !strchr(s, ':');
*p = ']';
*p = '\0';
not_host = strchr(s, '/') || !strchr(s, ':');
*p = ']';