From: justdave%syndicomm.com <> Date: Wed, 25 Jul 2001 14:26:42 +0000 (+0000) Subject: re-fix bug 76154: permissions weren't being set correctly on the .htaccess files... X-Git-Tag: bugzilla-2.14~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83e0c3c2b02f091b2c19117252d93cf9acba7299;p=thirdparty%2Fbugzilla.git re-fix bug 76154: permissions weren't being set correctly on the .htaccess files when checksetup.pl was run again. Also adding .htaccess to .cvsignore so it won't show up as ? in cvs diffs and updates. Patch by Dave Miller r= jake@acutex.net --- diff --git a/.cvsignore b/.cvsignore index ce18c65ada..64432ca1ef 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,3 +1,4 @@ +.htaccess graphs data localconfig diff --git a/checksetup.pl b/checksetup.pl index 48dc8aa674..e205d4c06e 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -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';