]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
re-fix bug 76154: permissions weren't being set correctly on the .htaccess files...
authorjustdave%syndicomm.com <>
Wed, 25 Jul 2001 14:26:42 +0000 (14:26 +0000)
committerjustdave%syndicomm.com <>
Wed, 25 Jul 2001 14:26:42 +0000 (14:26 +0000)
Patch by Dave Miller <justdave@syndicomm.com>
r= jake@acutex.net

.cvsignore
checksetup.pl

index ce18c65ada4770e180a0a178aff5c62e696e0533..64432ca1ef1215d07f1d4f1ad5d83c0f8a634eb6 100644 (file)
@@ -1,3 +1,4 @@
+.htaccess
 graphs
 data
 localconfig
index 48dc8aa6748116d57edb71f9b9874549289ddbff..e205d4c06ef88e275cf6794ca2b79ddafe825750 100755 (executable)
@@ -708,6 +708,9 @@ if ($my_webservergroup) {
     # caller's uid.  Maybe there should be a $bugzillauid, and call with that
     # userid.
     chown $<, $webservergid, glob('*');
+    if (-e ".htaccess") { chown $<, $webservergid, ".htaccess" } # glob('*') doesn't catch dotfiles
+    if (-e "data/.htaccess") { chown $<, $webservergid, "data/.htaccess" }
+    if (-e "data/webdot/.htaccess") { chown $<, $webservergid, "data/webdot/.htaccess" }
     fixPerms('*',027);
     chmod 0644, 'globals.pl';
     chmod 0644, 'RelationSet.pm';