rpms/ntop/devel ntop-http_c.patch,NONE,1.1 ntop.spec,1.8,1.9

Rakesh Pandit rakesh at fedoraproject.org
Tue Mar 17 08:29:00 UTC 2009


Author: rakesh

Update of /cvs/pkgs/rpms/ntop/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26216

Modified Files:
	ntop.spec 
Added Files:
	ntop-http_c.patch 
Log Message:
Fixed world-writable access log (#490561)

ntop-http_c.patch:

--- NEW FILE ntop-http_c.patch ---
--- ntop-3.3.9.org/http.c	2009-03-16 23:58:33.000000000 +0530
+++ ntop-3.3.9/http.c	2009-03-16 23:59:39.000000000 +0530
@@ -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.",


Index: ntop.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ntop/devel/ntop.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ntop.spec	12 Mar 2009 15:54:12 -0000	1.8
+++ ntop.spec	17 Mar 2009 08:28:30 -0000	1.9
@@ -1,6 +1,6 @@
 Name:           ntop
 Version:        3.3.9
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A network traffic probe similar to the UNIX top command
 Group:          Applications/Internet
 # Confirmed from fedora legal 488717
@@ -16,6 +16,7 @@
 Patch3:         ntop-dbfile-default-dir.patch
 Patch4:         ntop-enable-sslv3.patch
 Patch5:         ntop-geoip.patch
+Patch6:         ntop-http_c.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  autoconf, automake, pkgconfig, libtool, groff, libpcap-devel wget
 BuildRequires:  gdbm-devel, gd-devel, rrdtool-devel, openssl-devel
@@ -67,6 +68,7 @@
 %patch3 -p1 -b .dbfile-default-dir
 %patch4 -p1 -b .sslv3
 %patch5 -p1 -b .geo
+%patch6 -p1 -b .http_c
 
 %build
 #run ntop own autoconf wrapper
@@ -186,6 +188,9 @@
 %{_localstatedir}/lib/ntop/rrd
 
 %changelog
+* Tue Mar 17 2009 Rakesh Pandit <rakesh at fedoraproject.org> - 3.3.9-5
+- Fixed world-writable access log (#490561)
+
 * Thu Mar 12 2009 Rakesh Pandit <rakesh at fedoraproject.org> - 3.3.9-4
 - Fixing license tag and confirmed .dat file are legal (#488717)
 - Fixed Source field with proper source URLs.




More information about the fedora-extras-commits mailing list