]> granicus.if.org Git - ejabberd/commitdiff
Escape quoting node name for ejabberdctl ping
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 18 Mar 2016 09:22:11 +0000 (10:22 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 18 Mar 2016 09:22:11 +0000 (10:22 +0100)
ejabberdctl.template

index aa9c2eb817c1b72d640d7e8e20b2dc99d690e980..3f74da695977de7a94b3c166a3a42e15e9916b51 100755 (executable)
@@ -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"
 }