diff options
author | tnn <tnn> | 2009-05-03 15:31:08 +0000 |
---|---|---|
committer | tnn <tnn> | 2009-05-03 15:31:08 +0000 |
commit | ff73318b40181c545c947ac96a64a9d035979ceb (patch) | |
tree | 1f802de8d64a7206ff6f6c06b46a891cfcb67740 /net/ntop/patches | |
parent | 289b74339bd854cf9a3ac770004f31316d03b7a2 (diff) | |
download | pkgsrc-ff73318b40181c545c947ac96a64a9d035979ceb.tar.gz |
patch-ac: Apply upstream SVN revision 3748, which fixes
upstream ticket 75: "access logs globally writable in daemonized mode"
Bump PKGREVISION.
Diffstat (limited to 'net/ntop/patches')
-rw-r--r-- | net/ntop/patches/patch-ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/ntop/patches/patch-ac b/net/ntop/patches/patch-ac new file mode 100644 index 00000000000..decadaa5e0b --- /dev/null +++ b/net/ntop/patches/patch-ac @@ -0,0 +1,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.", |