mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-13 04:13:29 +02:00
[ticket/12693] Check if the are executable and not if they are 644
PHPBB3-12693
This commit is contained in:
parent
f394f55fe2
commit
30e13a429c
@ -38,15 +38,19 @@ then
|
||||
-name 'composer.phar' \
|
||||
')' \
|
||||
-a '(' \
|
||||
-type f -a \
|
||||
-not -perm 644 \
|
||||
'(' \
|
||||
-type f -a \
|
||||
-perm +111 \
|
||||
')' -o \
|
||||
-not -perm +600 \
|
||||
')' \
|
||||
')' \
|
||||
)
|
||||
|
||||
if [ "$executables_files" != '' ]
|
||||
then
|
||||
echo "$executables_files MUST have the right 644.";
|
||||
ls -la $executables_files
|
||||
echo "$executables_files MUST NOT be executable.";
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user