File: 1010_dirdata_permissions.patch

package info (click to toggle)
awstats 8.0-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 13,244 kB
  • sloc: perl: 40,711; xml: 1,785; javascript: 1,493; java: 359; sh: 152; makefile: 40; php: 29
file content (20 lines) | stat: -rw-r--r-- 765 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Set $DirData permissions to 0755.
Author: Charles Fry <debian@frogcircus.org>
Bug-Debian: http://bugs.debian.org/299148
Forwarded: https://sourceforge.net/p/awstats/patches/204

---
 wwwroot/cgi-bin/awstats.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/wwwroot/cgi-bin/awstats.pl
+++ b/wwwroot/cgi-bin/awstats.pl
@@ -3095,7 +3095,7 @@ sub Check_Config {
 	if ( !$MigrateStats && !-d $DirData ) {
 		if ($CreateDirDataIfNotExists) {
 			if ($Debug) { debug( " Make directory $DirData", 2 ); }
-			my $mkdirok = mkdir "$DirData", 0766;
+			my $mkdirok = mkdir "$DirData", 0755;
 			if ( !$mkdirok ) {
 				error(
 "$PROG failed to create directory DirData (DirData=\"$DirData\", CreateDirDataIfNotExists=$CreateDirDataIfNotExists)."