- directory entries . and .. should be skipped
This commit is contained in:
parent
d4ba016a28
commit
f5144c423d
13
net-tools-1.60-skip.patch
Normal file
13
net-tools-1.60-skip.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- 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;
|
@ -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 @@ Patch52: net-tools-1.60-sctp.patch
|
||||
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 @@ ifconfig, netstat, route, and others.
|
||||
%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 @@ exit 0
|
||||
%{_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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user