[ticket/12693] Check if the files have the right 644

And not only if they are executable.

PHPBB3-12693
This commit is contained in:
Tristan Darricau 2014-06-23 18:58:41 +02:00
parent 18207ae1ec
commit 636eac2cd2

View file

@ -37,15 +37,15 @@ then
-name 'composer.phar' \ -name 'composer.phar' \
')' \ ')' \
-a '(' \ -a '(' \
-perm 755 -a \ -type f -a \
-type f \ -not -perm 644 \
')' \ ')' \
')' \ ')' \
) )
if [ "$executables_files" != '' ] if [ "$executables_files" != '' ]
then then
echo "$executables_files MUST NOT be executable."; echo "$executables_files MUST have the right 644.";
exit 1; exit 1;
fi fi
fi fi