- fix -I option for nestat, works as -I=eth0 again.

This commit is contained in:
Radek Vokál 2006-10-02 10:14:55 +00:00
parent bfb9be3ca3
commit 57e1edd1d3
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- net-tools-1.60/netstat.c.old 2006-10-02 12:03:49.000000000 +0200
+++ net-tools-1.60/netstat.c 2006-10-02 12:02:12.000000000 +0200
@@ -2233,6 +2233,7 @@ int main
break;
case 'I':
if (optarg && strcmp(optarg, "(null)"))
+ if (optarg[0] == '=') optarg++;
flag_int_name = strdup(optarg);
flag_int++;
break;

View File

@ -3,7 +3,7 @@
Summary: Basic networking tools.
Name: net-tools
Version: 1.60
Release: 73
Release: 74%{?dist}
License: GPL
Group: System Environment/Base
Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2
@ -68,6 +68,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
Patch57: net-tools-1.60-netstat-I-fix.patch
BuildRoot: %{_tmppath}/%{name}-root
Requires(post,preun): chkconfig
@ -133,6 +134,7 @@ ifconfig, netstat, route, and others.
%patch54 -p1 -b .long_iface
%patch55 -p1 -b .netdevice
%patch56 -p1 -b .skip
%patch57 -p1
cp %SOURCE2 ./config.h
cp %SOURCE3 ./config.make
@ -244,6 +246,10 @@ exit 0
%{_sysconfdir}/rc.d/init.d/netplugd
%changelog
* Mon Oct 2 2006 Radek Vokal <rvokal@redhat.com> - 1.60-74
- fix -I option for nestat, works as -I=eth0 again.
- add dist tag
* Mon Aug 7 2006 Radek Vokal <rvokal@redhat.com> - 1.60-73
- directory entries . and .. should be skipped