aboutsummaryrefslogtreecommitdiff
path: root/init.d/bootmisc.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-01-15 10:43:52 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-01-15 10:43:52 -0600
commit561b53ef09eed4dfba0b7f3026ddcdc2b7b5c54a (patch)
tree47de95051772e43d7369ccd3b41e03b97503776c /init.d/bootmisc.in
parentabadaa04abe1833c6016f203e5d10168002bd8d3 (diff)
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
Diffstat (limited to 'init.d/bootmisc.in')
-rw-r--r--init.d/bootmisc.in4
1 files changed, 3 insertions, 1 deletions
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