diff options
author | William Hubbs <williamh@gentoo.org> | 2011-04-19 10:56:14 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-04-19 10:56:14 -0500 |
commit | b6409feaac9922e5761ed7beef93bdf0fdf2faf7 (patch) | |
tree | 7c0e5dd1a15dae5c6ac047c3824947e7fd66e817 | |
parent | ede4d1cd60ca7ce283095833b3ad545a6364e178 (diff) |
fix permissions for /run/lock
If /run/lock is a directory, set the ownership and permissions for it,
whether or not we created the directory.
-rw-r--r-- | sh/init.sh.Linux.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in index 301c42ff..96474ffd 100644 --- a/sh/init.sh.Linux.in +++ b/sh/init.sh.Linux.in @@ -106,6 +106,8 @@ if [ -d /run ]; then 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 |