diff --git a/net-tools-1.60-netrom-fopen.diff b/net-tools-1.60-netrom-fopen.diff new file mode 100644 index 0000000..1fb6724 --- /dev/null +++ b/net-tools-1.60-netrom-fopen.diff @@ -0,0 +1,13 @@ +--- lib/netrom_gr.c 2009-10-07 12:26:35.000000000 +0200 ++++ lib/netrom_gr.c 2009-10-07 12:28:15.000000000 +0200 +@@ -32,8 +32,8 @@ + + int NETROM_rprint(int options) + { +- FILE *f1 = fopen(_PATH_PROCNET_NR_NODES, "r"); +- FILE *f2 = fopen(_PATH_PROCNET_NR_NEIGH, "r"); ++ FILE *f1 = NULL; ++ FILE *f2 = NULL; + char buffer[256]; + int qual, n, w; + /*int ext = options & FLAG_EXT; diff --git a/net-tools.changes b/net-tools.changes index 33820c6..2288b92 100644 --- a/net-tools.changes +++ b/net-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 7 12:30:00 CEST 2009 - ms@suse.de + +- fixed duplicate fopen calls in netrom_gr.c (bnc #544339) + ------------------------------------------------------------------- Mon Sep 14 11:04:16 CEST 2009 - ms@suse.de diff --git a/net-tools.spec b/net-tools.spec index 01bb8ff..202504b 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -27,7 +27,7 @@ Provides: iputils:/usr/sbin/traceroute6 Obsoletes: traceroute net_tool AutoReqProv: on Version: 1.60 -Release: 732 +Release: 731 Summary: Important Programs for Networking BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: net-tools-%{version}.tar.bz2 @@ -75,6 +75,7 @@ Patch40: net-tools-1.60-notrim.diff Patch41: net-tools-1.60-ipv6-statistics.diff Patch42: net-tools-1.60-ifindex.diff Patch43: net-tools-1.60-infiniband.diff +Patch44: net-tools-1.60-netrom-fopen.diff %description This package contains essential programs for network administration and @@ -136,6 +137,7 @@ cd .. %patch41 %patch42 %patch43 +%patch44 %build make config