From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R38kE-0003fh-SU for garchives@archives.gentoo.org; Mon, 12 Sep 2011 15:48:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9ECF21C1EE; Mon, 12 Sep 2011 15:48:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A9AC221C1EE for ; Mon, 12 Sep 2011 15:48:19 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 217A064230 for ; Mon, 12 Sep 2011 15:48:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id EB6448004A for ; Mon, 12 Sep 2011 15:48:17 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: <504592c92ad046d35fb6c85d56adb15a96cb5eac.idl0r@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: sh/ X-VCS-Repository: proj/openrc X-VCS-Files: sh/init.sh.Linux.in X-VCS-Directories: sh/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: 504592c92ad046d35fb6c85d56adb15a96cb5eac Date: Mon, 12 Sep 2011 15:48:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 78835f5b41546c04377c3468fe2f75fd commit: 504592c92ad046d35fb6c85d56adb15a96cb5eac Author: William Hubbs gentoo org> AuthorDate: Mon Sep 12 15:48:01 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Mon Sep 12 15:48:01 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D504592c9 Use checkpath to create /run/lock --- sh/init.sh.Linux.in | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in index b357434..f86c5f2 100644 --- a/sh/init.sh.Linux.in +++ b/sh/init.sh.Linux.in @@ -104,13 +104,7 @@ if [ -d /run ]; then fi eend $? fi - if [ ! -d /run/lock ]; then - mkdir /run/lock - fi - if [ -d /run/lock ]; then - chown root:uucp /run/lock - chmod 0775 /run/lock - fi + checkpath -d -m 0775 -o root:uucp /run/lock elif [ -e /run ]; then einfo "Unable to mount /run since it is not a directory" fi