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.
This commit is contained in:
William Hubbs 2011-04-19 10:56:14 -05:00
parent ede4d1cd60
commit b6409feaac

View File

@ -106,6 +106,8 @@ if [ -d /run ]; then
fi fi
if [ ! -d /run/lock ]; then if [ ! -d /run/lock ]; then
mkdir /run/lock mkdir /run/lock
fi
if [ -d /run/lock ]; then
chown root:uucp /run/lock chown root:uucp /run/lock
chmod 0775 /run/lock chmod 0775 /run/lock
fi fi