From cb9aecf35e1753009381b3b01e52d602f6960370 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 9 Feb 2011 13:30:01 +0100 Subject: [PATCH] ejabberdctl doesn't support parameters with blankspaces (EJAB-1458) Revert "Escape output from ctlexec() to erl script (thanks to Dan Scott)(EJAB-1399)" This reverts commit 6dea2d230714b556118fab6710141a88cc8aad23. --- src/ejabberdctl.template | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index d2f20fa79..0960f9aff 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -315,21 +315,13 @@ ctlexec () { CONN_NAME=$1; shift COMMAND=$@ - - CTLEXEC="$ERL \ + $EXEC_CMD "$ERL \ $NAME ${CONN_NAME} \ -noinput \ -hidden \ -pa $EJABBERD_EBIN_PATH \ $KERNEL_OPTS \ - -s ejabberd_ctl -extra $ERLANG_NODE" - - # quote input from the command line - for i in $COMMAND; do - CTLEXEC="$CTLEXEC '$i'"; - done - - $EXEC_CMD "$CTLEXEC" + -s ejabberd_ctl -extra $ERLANG_NODE $COMMAND" } # display ctl usage