summaryrefslogtreecommitdiff
path: root/www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch
blob: 26e225def360c6bbfc2c39ca1dc3c089bb9c9762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ./webfsd.c
+++ ./webfsd.c
@@ -918,8 +918,11 @@
 	} else {
 	    if (NULL == (logfh = fopen(logfile,"a")))
 		xperror(LOG_WARNING,"open access log",NULL);
-	    else
+	    else {
 		close_on_exec(fileno(logfh));
+		if (0 != chmod(logfile,S_IRUSR|S_IWUSR))
+		    xperror(LOG_WARNING,"chmod access log",NULL);
+	    }
 	}
     }