[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/net-tools/devel net-tools-1.60-skip.patch, NONE, 1.1 net-tools.spec, 1.73, 1.74



Author: rvokal

Update of /cvs/dist/rpms/net-tools/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv11452

Modified Files:
	net-tools.spec 
Added Files:
	net-tools-1.60-skip.patch 
Log Message:
 - directory entries . and .. should be skipped

net-tools-1.60-skip.patch:
 netstat.c |    4 ++++
 1 files changed, 4 insertions(+)

--- NEW FILE net-tools-1.60-skip.patch ---
--- net-tools-1.60/netstat.c.skip	2006-08-07 10:45:25.000000000 +0200
+++ net-tools-1.60/netstat.c	2006-08-07 11:17:37.000000000 +0200
@@ -444,6 +444,10 @@
 #ifdef DIRENT_HAVE_D_TYPE_WORKS
 	    if (direfd->d_type!=DT_LNK) 
 		continue;
+#else
+	/* Skip . and .. */
+	    if (!isdigit(direfd->d_name[0])) 
+		continue;
 #endif
 	    if (procfdlen+1+strlen(direfd->d_name)+1>sizeof(line)) 
 		continue;


Index: net-tools.spec
===================================================================
RCS file: /cvs/dist/rpms/net-tools/devel/net-tools.spec,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- net-tools.spec	12 Jul 2006 07:27:03 -0000	1.73
+++ net-tools.spec	7 Aug 2006 09:32:55 -0000	1.74
@@ -3,7 +3,7 @@
 Summary: Basic networking tools.
 Name: net-tools
 Version: 1.60
-Release: 72.1
+Release: 73
 License: GPL
 Group: System Environment/Base
 Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2
@@ -67,6 +67,7 @@
 Patch53: net-tools-1.60-arp_man.patch
 Patch54: net-tools-1.60-ifconfig-long-iface-crasher.patch
 Patch55: net-tools-1.60-netdevice.patch
+Patch56: net-tools-1.60-skip.patch
 
 BuildRoot: %{_tmppath}/%{name}-root
 Requires(post,preun): chkconfig
@@ -130,7 +131,8 @@
 %patch52 -p1 -b .sctp
 %patch53 -p1
 %patch54 -p1 -b .long_iface
-%patch55 -p1 -b .netdevice
+#%patch55 -p1 -b .netdevice
+%patch56 -p1 -b .skip
 
 cp %SOURCE2 ./config.h
 cp %SOURCE3 ./config.make
@@ -242,6 +244,9 @@
 %{_sysconfdir}/rc.d/init.d/netplugd
 
 %changelog
+* Mon Aug  7 2006 Radek Vokal <rvokal redhat com> - 1.60-73
+- directory entries . and .. should be skipped
+
 * Wed Jul 12 2006 Jesse Keating <jkeating redhat com> - 1.60-72.1
 - rebuild
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]