This commit is contained in:
parent
7718620251
commit
1ba5cfe121
19
net-tools-1.60-interface_socket.diff
Normal file
19
net-tools-1.60-interface_socket.diff
Normal file
@ -0,0 +1,19 @@
|
||||
--- net-tools-1.60/lib/interface.c 2008-11-20 12:01:16.000000000 +0100
|
||||
+++ net-tools-1.60/lib/interface.c 2008-11-20 12:19:22.000000000 +0100
|
||||
@@ -161,12 +161,10 @@
|
||||
(as of 2.1.128) */
|
||||
skfd = get_socket_for_af(AF_INET);
|
||||
if (skfd < 0) {
|
||||
- fprintf(stderr, _("warning: no inet socket available: %s\n"),
|
||||
- strerror(errno));
|
||||
- /* Try to soldier on with whatever socket we can get hold of. */
|
||||
- skfd = sockets_open(0);
|
||||
- if (skfd < 0)
|
||||
- return -1;
|
||||
+ /* Try to soldier on with whatever socket we can get hold of. */
|
||||
+ skfd = sockets_open(0);
|
||||
+ if (skfd < 0)
|
||||
+ return -1;
|
||||
}
|
||||
|
||||
ifc.ifc_buf = NULL;
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 20 12:24:38 CET 2008 - ms@suse.de
|
||||
|
||||
- don't show af_inet socket warning for netstat -i (bnc #430864)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 6 16:06:51 CET 2008 - ms@suse.de
|
||||
|
||||
|
@ -28,7 +28,7 @@ Provides: iputils:/usr/share/man/man8/traceroute6.1.gz
|
||||
Obsoletes: traceroute net_tool
|
||||
AutoReqProv: on
|
||||
Version: 1.60
|
||||
Release: 724
|
||||
Release: 725
|
||||
Summary: Important Programs for Networking
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: net-tools-%{version}.tar.bz2
|
||||
@ -66,6 +66,7 @@ Patch30: net-tools-1.60-ifconfig.8.diff
|
||||
Patch31: net-tools-1.60-tcp-recvq-listen.patch
|
||||
Patch32: net-tools-1.60-netstat-ci.diff
|
||||
Patch33: net-tools-1.60-ifconfig-SIOCSIFNETMASK.diff
|
||||
Patch34: net-tools-1.60-interface_socket.diff
|
||||
|
||||
%description
|
||||
This package contains essential programs for network administration and
|
||||
@ -117,6 +118,7 @@ cd ..
|
||||
%patch31 -p1
|
||||
%patch32 -p1
|
||||
%patch33 -p1
|
||||
%patch34 -p1
|
||||
|
||||
%build
|
||||
make config
|
||||
@ -170,6 +172,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%lang(pt_BR) %doc %_mandir/pt_BR/man*/*
|
||||
|
||||
%changelog
|
||||
* Thu Nov 20 2008 ms@suse.de
|
||||
- don't show af_inet socket warning for netstat -i (bnc #430864)
|
||||
* Thu Nov 06 2008 ms@suse.de
|
||||
- really fixed SIOCSIFNETMASK ioctl from being called earlier
|
||||
to SIOCSIFADDR (bnc #438983)
|
||||
|
Loading…
Reference in New Issue
Block a user