You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch

16 lines
333 B

--- ./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);
+ }
}
}