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 D9CC2138010 for ; Mon, 22 Oct 2012 00:53:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F25B21C074; Mon, 22 Oct 2012 00:53:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B5C5821C074 for ; Mon, 22 Oct 2012 00:53:17 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 20AFB33C1F2 for ; Mon, 22 Oct 2012 00:53:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id BD5E6E5436 for ; Mon, 22 Oct 2012 00:53:15 +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: <1350866982.5647946e61380c9f917828440d4c6e5bd8796f56.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: sh/ X-VCS-Repository: proj/openrc X-VCS-Files: sh/tmpfiles.sh.in X-VCS-Directories: sh/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 5647946e61380c9f917828440d4c6e5bd8796f56 X-VCS-Branch: master Date: Mon, 22 Oct 2012 00:53:15 +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: 93a55d05-7d77-46fb-b516-1146728ec05a X-Archives-Hash: 79098428f9d2d6f58a115e891561b368 commit: 5647946e61380c9f917828440d4c6e5bd8796f56 Author: Andrew Gregory gmail com> AuthorDate: Thu Oct 11 18:34:19 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Oct 22 00:49:42 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=5647946e tmpfiles: return success from _f/_F on empty $arg '[ -n "$arg" ] && _w' causes _f/_F to return the failure from the test when $arg is empty. Inverting the test causes the test and _f/_F to return success. Signed-off-by: Andrew Gregory gmail.com> --- sh/tmpfiles.sh.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/tmpfiles.sh.in b/sh/tmpfiles.sh.in index 2486da2..57cedbe 100755 --- a/sh/tmpfiles.sh.in +++ b/sh/tmpfiles.sh.in @@ -61,7 +61,7 @@ _f() { if [ ! -e "$path" ]; then dryrun_or_real install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path" - [ -n "$arg" ] && _w "$@" + [ -z "$arg" ] || _w "$@" fi } @@ -72,7 +72,7 @@ _F() { [ $CREATE -gt 0 ] || return 0 dryrun_or_real install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path" - [ -n "$arg" ] && _w "$@" + [ -z "$arg" ] || _w "$@" } _d() {