From: Marcin Krol Date: Fri, 25 Jul 2014 16:53:40 +0000 (+0000) Subject: - use eval in run_cmd, fixes running command with multiple quotes or X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=dd9dcbbf8442573799627c7d40f3fd7b9020e943;p=packages%2Frc-scripts.git - use eval in run_cmd, fixes running command with multiple quotes or options passed by variables --- diff --git a/rc-scripts-misc.patch b/rc-scripts-misc.patch index 980338b..cfa8ca2 100644 --- a/rc-scripts-misc.patch +++ b/rc-scripts-misc.patch @@ -22,3 +22,15 @@ diff -ur rc-scripts-0.4.12.orig/rc.d/init.d/network rc-scripts-0.4.12/rc.d/init. if [ -n "$bootprio" ]; then # find all the interfaces besides loopback. +diff -ur rc-scripts-0.4.12.orig/lib/functions rc-scripts-0.4.12/lib/functions +--- rc-scripts-0.4.12.orig/lib/functions 2014-06-19 19:51:23.000000000 +0000 ++++ rc-scripts-0.4.12/lib/functions 2014-07-25 16:11:36.742000000 +0000 +@@ -590,7 +590,7 @@ + cd / + export HOME=/tmp TMPDIR=/tmp + if is_no "$RC_LOGGING"; then +- ${user:+setuidgid -s $user} "$@" 2>&1 ++ ${user:+setuidgid -s $user} eval "$@" 2>&1 + else + ${user:+setuidgid -s $user} initlog -c "$*" 2>&1 + fi