summaryrefslogtreecommitdiff
path: root/www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch')
-rw-r--r--www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch b/www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch
new file mode 100644
index 00000000000..26e225def36
--- /dev/null
+++ b/www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch
@@ -0,0 +1,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);
++ }
+ }
+ }
+