OBS User unknown 2009-08-07 22:22:05 +00:00 committed by Git OBS Bridge
parent 9c6aaf9a90
commit 6f2fb3431b
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,18 @@
--- net-tools-1.60/iptunnel.c 2009-08-06 16:15:00.000000000 +0200
+++ net-tools-1.60/iptunnel.c 2009-08-06 16:15:51.000000000 +0200
@@ -485,6 +485,7 @@
if ((ptr = strchr(buf, ':')) == NULL ||
(*ptr++ = 0, sscanf(buf, "%s", name) != 1)) {
fprintf(stderr, _("Wrong format of /proc/net/dev. Sorry.\n"));
+ fclose (fp);
return -1;
}
if (sscanf(ptr, "%ld%ld%ld%ld%ld%ld%ld%*d%ld%ld%ld%ld%ld%ld%ld",
@@ -521,6 +522,7 @@
tx_packets, tx_bytes, tx_errs, tx_colls, tx_carrier, tx_drops);
}
}
+ fclose (fp);
return 0;
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 6 16:17:40 CEST 2009 - ms@suse.de
- fixed missing fclose to fopen (bnc #528577)
-------------------------------------------------------------------
Tue Jul 7 20:50:38 CEST 2009 - ms@suse.de

View File

@ -28,7 +28,7 @@ Provides: iputils:/usr/share/man/man8/traceroute6.1.gz
Obsoletes: traceroute net_tool
AutoReqProv: on
Version: 1.60
Release: 729
Release: 730
Summary: Important Programs for Networking
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: net-tools-%{version}.tar.bz2
@ -71,6 +71,7 @@ Patch35: net-tools-1.60-interface_mtu.diff
Patch36: net-tools-1.60-printval-conversion.patch
Patch37: traceroute-glibc210.diff
#Patch38: net-tools-1.60-obsolete.diff
Patch39: net-tools-1.60-fclose.diff
%description
This package contains essential programs for network administration and
@ -127,6 +128,7 @@ cd ..
%patch35 -p1
%patch36 -p1
#%patch38 -p1
%patch39 -p1
%build
make config