Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2016-02-15 17:21:20 +0300
committerPaweł Chmielowski <pchmielowski@process-one.net>2016-02-15 17:21:27 +0300
commitd40a091eda4a4a9d3d6c9e27ea4c0aeea2a7496d (patch)
tree1dde8c4e6984b35ff4a8c33b41467442b339f885 /ejabberdctl.template
parentc9c59f00ad0d0d91a99bdc01c5b6ac1e6ff7676f (diff)
Another fix for \n in ejabberdctl arguments
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-xejabberdctl.template6
1 files changed, 3 insertions, 3 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index 0d1a64292..07395aafd 100755
--- a/ejabberdctl.template
+++ b/ejabberdctl.template
@@ -31,14 +31,14 @@ if [ "$INSTALLUSER" != "" ] ; then
fi
done
if [ `id -g` -eq `id -g $INSTALLUSER` ] ; then
- EXEC_CMD="sh -c"
+ EXEC_CMD="bash -c"
fi
if [ "$EXEC_CMD" = "false" ] ; then
echo "This command can only be run by root or the user $INSTALLUSER" >&2
exit 4
fi
else
- EXEC_CMD="sh -c"
+ EXEC_CMD="bash -c"
fi
# parse command line parameters
@@ -166,7 +166,7 @@ shell_escape()
if test -z "$i"; then
printf '"" '
else
- printf '"%q" ' "$i" | sed 's/\\\\n/\n/g;s/\\\\t/\t/g;s/\\\\r/\r/g'
+ printf '%q ' "$i"
fi
done
}