From: Christophe Romain <christophe.romain@process-one.net>
Date: Fri, 18 Mar 2016 09:22:11 +0000 (+0100)
Subject: Escape quoting node name for ejabberdctl ping
X-Git-Tag: 16.03~37
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f19a54e9a12d49e295cdc86ad79b32bc95b31285;p=ejabberd

Escape quoting node name for ejabberdctl ping
---

diff --git a/ejabberdctl.template b/ejabberdctl.template
index aa9c2eb81..3f74da695 100755
--- a/ejabberdctl.template
+++ b/ejabberdctl.template
@@ -332,7 +332,7 @@ ping()
       $NAME ping-${TTY}-${ERLANG_NODE} \
       -hidden \
       $KERNEL_OPTS $ERLANG_OPTS \
-      -eval 'io:format(\"~p~n\",[net_adm:ping($1)])' \
+      -eval 'io:format(\"~p~n\",[net_adm:ping('\"'\"'$1'\"'\"')])' \
       -s erlang halt -output text -noinput"
 }