From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0DB68138A6C for ; Wed, 8 Apr 2015 14:45:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 141BBE0825; Wed, 8 Apr 2015 14:45:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B73F8E0825 for ; Wed, 8 Apr 2015 14:45:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B94E8340892 for ; Wed, 8 Apr 2015 14:45:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C09F157B8 for ; Wed, 8 Apr 2015 14:44:59 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1428503824.731a3affdce31e2971a84cde11df2d122049ec99.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/local.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 731a3affdce31e2971a84cde11df2d122049ec99 X-VCS-Branch: master Date: Wed, 8 Apr 2015 14:44:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e293ba01-1287-41ef-842a-9be6a20afdd3 X-Archives-Hash: e6dd6d8ce4a2fa9d0dd562425a931ba8 commit: 731a3affdce31e2971a84cde11df2d122049ec99 Author: William Hubbs gmail com> AuthorDate: Fri Apr 3 02:21:46 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Apr 8 14:37:04 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=731a3aff 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 63f8598..254135c 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