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 3748E13888F for ; Tue, 13 Oct 2015 13:37:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C575E07D5; Tue, 13 Oct 2015 13:36:58 +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 4972DE07D5 for ; Tue, 13 Oct 2015 13:36:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 496D8340914 for ; Tue, 13 Oct 2015 13:36:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B159F1039 for ; Tue, 13 Oct 2015 13:36:54 +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: <1444741190.29f7e335927d4c1fb151124de8cdf01fb87723fa.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: sh/ X-VCS-Repository: proj/openrc X-VCS-Files: sh/openrc-run.sh.in X-VCS-Directories: sh/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 29f7e335927d4c1fb151124de8cdf01fb87723fa X-VCS-Branch: master Date: Tue, 13 Oct 2015 13:36:54 +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: 6cb59c93-691f-4491-a28b-21199dfe46b5 X-Archives-Hash: 7b2f9581a5b255d661356bafedbc2fc4 commit: 29f7e335927d4c1fb151124de8cdf01fb87723fa Author: William Hubbs gmail com> AuthorDate: Tue Oct 13 12:59:50 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Oct 13 12:59:50 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=29f7e335 openrc-run.sh: allow spaces in required_{files,dirs} X-Gentoo-Bug: 562320 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562320 sh/openrc-run.sh.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in index 33dc59c..e9369e4 100644 --- a/sh/openrc-run.sh.in +++ b/sh/openrc-run.sh.in @@ -221,16 +221,16 @@ done # Load our script sourcex "$RC_SERVICE" -for _d in $required_dirs; do - if [ ! -d $_d ]; then +eval "printf '%s\n' $required_dirs" | while read _d; do + if [ ! -d "$_d" ]; then eerror "$RC_SVCNAME: \`$_d' is not a directory" exit 1 fi done unset _d -for _f in $required_files; do - if [ ! -r $_f ]; then +eval "printf '%s\n' $required_files" | while read _f; do + if [ ! -r "$_f" ]; then eerror "$RC_SVCNAME: \`$_f' is not readable" exit 1 fi