зеркало из https://github.com/mozilla/pjs.git
Have checksetup.pl block web-access to runtests.sh (by .htaccess) and
chmod +x runtests.sh so that it can be run with ./ r=bbaetz on irc, no 2nd review needed. No bug filed.
This commit is contained in:
Родитель
e51f621218
Коммит
be566d9a28
|
@ -590,7 +590,7 @@ if ($my_create_htaccess) {
|
||||||
open HTACCESS, ">.htaccess";
|
open HTACCESS, ">.htaccess";
|
||||||
print HTACCESS <<'END';
|
print HTACCESS <<'END';
|
||||||
# don't allow people to retrieve non-cgi executable files or our private data
|
# don't allow people to retrieve non-cgi executable files or our private data
|
||||||
<FilesMatch ^(.*\.pl|localconfig|processmail|syncshadowdb)$>
|
<FilesMatch ^(.*\.pl|localconfig|processmail|syncshadowdb|runtests.sh)$>
|
||||||
deny from all
|
deny from all
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
END
|
END
|
||||||
|
@ -682,7 +682,7 @@ unlink "data/versioncache";
|
||||||
|
|
||||||
# These are the files which need to be marked executable
|
# These are the files which need to be marked executable
|
||||||
my @executable_files = ('processmail', 'whineatnews.pl', 'collectstats.pl',
|
my @executable_files = ('processmail', 'whineatnews.pl', 'collectstats.pl',
|
||||||
'checksetup.pl', 'syncshadowdb', 'importxml.pl');
|
'checksetup.pl', 'syncshadowdb', 'importxml.pl', 'runtests.sh');
|
||||||
|
|
||||||
# tell me if a file is executable. All CGI files and those in @executable_files
|
# tell me if a file is executable. All CGI files and those in @executable_files
|
||||||
# are executable
|
# are executable
|
||||||
|
|
Загрузка…
Ссылка в новой задаче