]> TLD Linux GIT Repositories - packages/rc-scripts.git/commitdiff
- use eval in run_cmd, fixes running command with multiple quotes or
authorMarcin Krol <hawk@tld-linux.org>
Fri, 25 Jul 2014 16:53:40 +0000 (16:53 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Fri, 25 Jul 2014 16:53:40 +0000 (16:53 +0000)
  options passed by variables

rc-scripts-misc.patch

index 980338b6985196f01f345638152c7d59001256de..cfa8ca20a7225b3814c8541a2787b41d63bb96d3 100644 (file)
@@ -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