summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-08-14 09:59:43 +0200
committerbbaetz%student.usyd.edu.au <>2002-08-14 09:59:43 +0200
commiteaa936685f9099320de7cc75afd58186ca409c2f (patch)
treecbf2d68887db2a6fb016f243b4bb443beac734a3
parentf9e05e2778aa373cb29c2cc49a470b184981f24d (diff)
downloadbugzilla-eaa936685f9099320de7cc75afd58186ca409c2f.tar.gz
bugzilla-eaa936685f9099320de7cc75afd58186ca409c2f.tar.xz
Bug 162438 - fix permissions/tests for Bugzilla/ directory
r=joel x2
-rwxr-xr-xchecksetup.pl13
-rw-r--r--t/Support/Files.pm3
2 files changed, 15 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl
index e0a42c1a5..9c1150080 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -773,6 +773,17 @@ END
close HTACCESS;
chmod $fileperm, ".htaccess";
}
+ if (!-e "Bugzilla/.htaccess") {
+ print "Creating Bugzilla/.htaccess...\n";
+ open HTACCESS, ">Bugzilla/.htaccess";
+ print HTACCESS <<'END';
+# nothing in this directory is retrievable unless overriden by an .htaccess
+# in a subdirectory
+deny from all
+END
+ close HTACCESS;
+ chmod $fileperm, "Bugzilla/.htaccess";
+ }
if (!-e "data/.htaccess") {
print "Creating data/.htaccess...\n";
open HTACCESS, ">data/.htaccess";
@@ -1102,6 +1113,7 @@ if ($my_webservergroup) {
fixPerms('data/webdot/.htaccess', $<, $webservergid, 027);
fixPerms('data/params', $<, $webservergid, 017);
fixPerms('*', $<, $webservergid, 027);
+ fixPerms('Bugzilla', $<, $webservergid, 027, 1);
fixPerms('template', $<, $webservergid, 027, 1);
fixPerms('css', $<, $webservergid, 027, 1);
chmod 0644, 'globals.pl';
@@ -1126,6 +1138,7 @@ if ($my_webservergroup) {
fixPerms('data/webdot/.htaccess', $<, $gid, 022);
fixPerms('data/params', $<, $gid, 011);
fixPerms('*', $<, $gid, 022);
+ fixPerms('Bugzilla', $<, $gid, 022, 1);
fixPerms('template', $<, $gid, 022, 1);
fixPerms('css', $<, $gid, 022, 1);
diff --git a/t/Support/Files.pm b/t/Support/Files.pm
index 63c55ce86..e68d08ea7 100644
--- a/t/Support/Files.pm
+++ b/t/Support/Files.pm
@@ -37,8 +37,9 @@ package Support::Files;
@additional_files = ('syncshadowdb','processmail');
@exclude_files = ('importxml.pl');
+# XXX - this file should be rewritten to use File::Find or similar
$file = '*';
-@files = glob($file);
+@files = (glob($file), glob('Bugzilla/*.pm'));
sub isTestingFile {
my ($file) = @_;