diff --git a/net-tools-1.60-statistics_buffer.patch b/net-tools-1.60-statistics_buffer.patch new file mode 100644 index 0000000..526c490 --- /dev/null +++ b/net-tools-1.60-statistics_buffer.patch @@ -0,0 +1,12 @@ +diff -up net-tools-1.60/statistics.c.old net-tools-1.60/statistics.c +--- net-tools-1.60/statistics.c.old 2008-03-04 10:44:41.000000000 +0100 ++++ net-tools-1.60/statistics.c 2008-03-04 10:44:11.000000000 +0100 +@@ -352,7 +352,7 @@ struct tabtab *newtable(struct tabtab *t + + void process_fd(FILE *f,int file_desc) // added file_desc to show propriate error mesg + { +- char buf1[1024], buf2[1024]; ++ char buf1[2048], buf2[2048]; + char *sp, *np, *p; + while (fgets(buf1, sizeof buf1, f)) { + int endflag; diff --git a/net-tools.spec b/net-tools.spec index a7ea4d5..3268da3 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -3,7 +3,7 @@ Summary: Basic networking tools Name: net-tools Version: 1.60 -Release: 86%{?dist} +Release: 87%{?dist} License: GPL+ Group: System Environment/Base URL: http://www.tazenda.demon.co.uk/phil/net-tools/ @@ -75,6 +75,7 @@ Patch61: net-tools-1.60-remove_node.patch Patch62: net-tools-1.60-netstat-interfaces-crash.patch Patch63: net-tools-1.60-netplugd_init.patch Patch64: net-tools-1.60-ec_hw_null.patch +Patch65: net-tools-1.60-statistics_buffer.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(post): /sbin/chkconfig @@ -150,6 +151,7 @@ ifconfig, netstat, route, and others. %patch62 -p1 -b .iface-crash %patch63 -p1 %patch64 -p1 +%patch65 -p1 -b .buffer cp %SOURCE2 ./config.h cp %SOURCE3 ./config.make @@ -265,6 +267,9 @@ exit 0 %{_sysconfdir}/rc.d/init.d/netplugd %changelog +* Tue Mar 4 2008 Radek Vokál - 1.80-87 +- fix buffer for newer kernels (#435554) + * Mon Feb 25 2008 Radek Vokal - 1.60-86 - fix for GCC 4.3