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:
1 parent
ede4d1cd60
commit
b6409feaac
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user