blob: decadaa5e0b3ca8777470b06cdada6a1bfa365cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ac,v 1.6 2009/05/03 15:31:08 tnn Exp $
http://www.ntop.org/trac/ticket/75
Index: http.c
===================================================================
--- http.c (revision 3747)
+++ http.c (revision 3748)
@@ -1341,6 +1341,7 @@
void initAccessLog(void) {
if(myGlobals.runningPref.accessLogFile) {
+ umask(0137);
myGlobals.accessLogFd = fopen(myGlobals.runningPref.accessLogFile, "a");
if(myGlobals.accessLogFd == NULL) {
traceEvent(CONST_TRACE_ERROR, "Unable to create file %s. Access log is disabled.",
|