This commit is contained in:
Greg Wilkins 2017-10-20 11:25:27 +11:00
parent d4201b718f
commit 818cad59b7
1 changed files with 3 additions and 3 deletions

View File

@ -468,10 +468,10 @@ case "$ACTION" in
chown "$JETTY_USER" "$JETTY_PID"
# FIXME: Broken solution: wordsplitting, pathname expansion, arbitrary command execution, etc.
su - "$JETTY_USER" $SU_SHELL -c "
cd "$JETTY_BASE"
exec ${RUN_CMD[*]} start-log-file="$JETTY_LOGS/start.log" > /dev/null &
cd \"$JETTY_BASE\"
exec ${RUN_CMD[*]} start-log-file=\"$JETTY_LOGS/start.log\" > /dev/null &
disown \$!
echo \$! > '$JETTY_PID'"
echo \$! > \"$JETTY_PID\""
else
"${RUN_CMD[@]}" > /dev/null &
disown $!