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 EB457138200 for ; Tue, 23 Jul 2013 23:01:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DE66E0966; Tue, 23 Jul 2013 23:01:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A98B6E0980 for ; Tue, 23 Jul 2013 23:01:42 +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 C5F2833E982 for ; Tue, 23 Jul 2013 23:01:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 746AAE5461 for ; Tue, 23 Jul 2013 23:01:40 +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: <1374620322.19579687fd6d4fb80ffbd83c010fab6777c3120c.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: 19579687fd6d4fb80ffbd83c010fab6777c3120c X-VCS-Branch: master Date: Tue, 23 Jul 2013 23:01:40 +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: 9c446ccf-8984-4b93-94ff-9b294868bdd7 X-Archives-Hash: 50a6225cf0ec064f10f2c2f66ed19a24 commit: 19579687fd6d4fb80ffbd83c010fab6777c3120c Author: William Hubbs gmail com> AuthorDate: Tue Jul 23 22:58:42 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Jul 23 22:58:42 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=19579687 tmpfiles: make b and c commands set ownership and permissions The b and c commands in tmpfiles.sh were not setting ownership and permissions for the device nodes. --- sh/tmpfiles.sh.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sh/tmpfiles.sh.in b/sh/tmpfiles.sh.in index cb9eceb..59fdcd7 100755 --- a/sh/tmpfiles.sh.in +++ b/sh/tmpfiles.sh.in @@ -43,13 +43,17 @@ relabel() { _b() { # Create a block device node if it doesn't exist yet local path=$1 mode=$2 uid=$3 gid=$4 age=$5 arg=$6 - [ ! -e "$path" ] && dryrun_or_real mknod $path b ${arg%:*} ${arg#*:} + [ ! -e "$path" ] && \ + dryrun_or_real mknod -m $mode $path b ${arg%:*} ${arg#*:} && \ + dryrun_or_real chown $uid:$gid $path } _c() { # Create a character device node if it doesn't exist yet local path=$1 mode=$2 uid=$3 gid=$4 age=$5 arg=$6 - [ ! -e "$path" ] && dryrun_or_real mknod $path c ${arg%:*} ${arg#*:} + [ ! -e "$path" ] && \ + dryrun_or_real mknod -m $mode $path c ${arg%:*} ${arg#*:} && \ + dryrun_or_real chown $uid:$gid $path }