diff options
author | William Hubbs <williamh@gentoo.org> | 2012-01-20 16:48:24 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-01-22 11:56:24 -0600 |
commit | 6e2fbf6a0fd04f2ba4afca8b7a2ef9af34ebf330 (patch) | |
tree | a37362ae0f913e361b1e4dfec9910d7073bfbb36 /init.d/consolefont.in | |
parent | 2990e5a2e3ec06180ebe63448239e1cdad7878dd (diff) |
Make checks for writable directory posix compliant
Reported-by: Maxim Kammerer <mk@de.su>
X-Gentoo-Bug: 398931
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=398931
Diffstat (limited to 'init.d/consolefont.in')
-rw-r--r-- | init.d/consolefont.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/consolefont.in b/init.d/consolefont.in index f83b0036..2f046d89 100644 --- a/init.d/consolefont.in +++ b/init.d/consolefont.in @@ -54,7 +54,7 @@ start() eend $retval # Store the last font so we can use it ASAP on boot - if [ $retval -eq 0 -a -w "$RC_LIBEXECDIR" ]; then + if [ $retval -eq 0 ] && dir_writable "$RC_LIBEXECDIR"; then mkdir -p "$RC_LIBEXECDIR"/console for font in /usr/share/consolefonts/"$consolefont".*; do : |