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 6BEB11387B2 for ; Sat, 18 Jan 2014 07:57:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 691B2E0E2D; Sat, 18 Jan 2014 07:57:00 +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 BDD1EE0E2D for ; Sat, 18 Jan 2014 07:56:59 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7EF633FA85 for ; Sat, 18 Jan 2014 07:56:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id A01B31872C for ; Sat, 18 Jan 2014 07:56:57 +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: <1389804232.561b53ef09eed4dfba0b7f3026ddcdc2b7b5c54a.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/bootmisc.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 561b53ef09eed4dfba0b7f3026ddcdc2b7b5c54a X-VCS-Branch: master Date: Sat, 18 Jan 2014 07:56:57 +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: 32397023-6d77-4160-8e29-ebc0be4ee861 X-Archives-Hash: afcdb1c4163df959242dfd2ad489c47b commit: 561b53ef09eed4dfba0b7f3026ddcdc2b7b5c54a Author: William Hubbs gmail com> AuthorDate: Wed Jan 15 16:43:52 2014 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Jan 15 16:43:52 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=561b53ef bootmisc: Remove console directories only if $RC_LIBEXECDIR is writable X-Gentoo-Bug: 489368 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489368 --- init.d/bootmisc.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index ca333be..3e56ebc 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -129,7 +129,9 @@ clean_run() start() { # Remove any added console dirs - rm -rf "$RC_LIBEXECDIR"/console/* + if checkpath -W "$RC_LIBEXECDIR"; then + rm -rf "$RC_LIBEXECDIR"/console/* + fi local logw=false runw=false extra= # Ensure that our basic dirs exist