mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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
1 changed files with 7 additions and 3 deletions
|
@ -38,15 +38,19 @@ then
|
||||||
-name 'composer.phar' \
|
-name 'composer.phar' \
|
||||||
')' \
|
')' \
|
||||||
-a '(' \
|
-a '(' \
|
||||||
-type f -a \
|
'(' \
|
||||||
-not -perm 644 \
|
-type f -a \
|
||||||
|
-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
|
||||||
|
|
Loading…
Add table
Reference in a new issue