From b6409feaac9922e5761ed7beef93bdf0fdf2faf7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 19 Apr 2011 10:56:14 -0500 Subject: [PATCH] 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. --- sh/init.sh.Linux.in | 2 ++ 1 file changed, 2 insertions(+) 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