From 731a3affdce31e2971a84cde11df2d122049ec99 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 2 Apr 2015 21:21:46 -0500 Subject: [PATCH] Fix script execution in the local service The local service should use eval when it executes scripts since it has the redirection set up in a variable. This fixes #50. X-Gentoo-Bug: 545012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545012 --- init.d/local.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/local.in b/init.d/local.in index 63f85986..254135c8 100644 --- a/init.d/local.in +++ b/init.d/local.in @@ -20,7 +20,7 @@ start() for file in @SYSCONFDIR@/local.d/*.start; do if [ -x "${file}" ]; then vebegin "Executing \"${file}\"" - "${file}" $redirect + eval "${file}" $redirect retval=$? if [ ${retval} -ne 0 ]; then has_errors=1 @@ -59,7 +59,7 @@ stop() for file in @SYSCONFDIR@/local.d/*.stop; do if [ -x "${file}" ]; then vebegin "Executing \"${file}\"" - "${file}" $redirect + eval "${file}" $redirect retval=$? if [ ${retval} -ne 0 ]; then has_errors=1