diff options
author | Martin Schwenke <martin@meltin.net> | 2014-11-28 21:49:08 +1100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-12-10 20:56:09 +0100 |
commit | 6c245c5b8349a4ce35d74591e85ffb856327b837 (patch) | |
tree | 34beab6c4fe129f50b29554a356230cbd2201224 | |
parent | 78f35cb09c336e8dce53f0066d8aa36c3fed5a10 (diff) | |
download | samba-6c245c5b8349a4ce35d74591e85ffb856327b837.tar.gz |
ctdb-tools: Bracket IP addresses in onnode (for IPv6)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 2d480792e7d0b3f6628186dc77f54b708e315dd1)
-rwxr-xr-x | ctdb/tools/onnode | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/tools/onnode b/ctdb/tools/onnode index 96d569a2644..2ca3113b9d4 100755 --- a/ctdb/tools/onnode +++ b/ctdb/tools/onnode @@ -320,8 +320,8 @@ push() for f in $files ; do $verbose && echo "Pushing $f" case "$f" in - /*) rsync "$f" "${host}:${f}" ;; - *) rsync "${PWD}/${f}" "${host}:${PWD}/${f}" ;; + /*) rsync "$f" "[${host}]:${f}" ;; + *) rsync "${PWD}/${f}" "[${host}]:${PWD}/${f}" ;; esac done } |