[ticket/12693] Check if the are executable and not if they are 644

PHPBB3-12693
This commit is contained in:
Tristan Darricau 2014-06-23 23:26:08 +02:00
parent f394f55fe2
commit 30e13a429c

View file

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