From 561b53ef09eed4dfba0b7f3026ddcdc2b7b5c54a Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 15 Jan 2014 10:43:52 -0600 Subject: 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 ca333bec..3e56ebcb 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 -- cgit v1.2.3