- fix buffer for newer kernels (#435554)
This commit is contained in:
parent
8046b57e3d
commit
b145ae5af4
12
net-tools-1.60-statistics_buffer.patch
Normal file
12
net-tools-1.60-statistics_buffer.patch
Normal file
@ -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;
|
@ -3,7 +3,7 @@
|
|||||||
Summary: Basic networking tools
|
Summary: Basic networking tools
|
||||||
Name: net-tools
|
Name: net-tools
|
||||||
Version: 1.60
|
Version: 1.60
|
||||||
Release: 86%{?dist}
|
Release: 87%{?dist}
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://www.tazenda.demon.co.uk/phil/net-tools/
|
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
|
Patch62: net-tools-1.60-netstat-interfaces-crash.patch
|
||||||
Patch63: net-tools-1.60-netplugd_init.patch
|
Patch63: net-tools-1.60-netplugd_init.patch
|
||||||
Patch64: net-tools-1.60-ec_hw_null.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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires(post): /sbin/chkconfig
|
Requires(post): /sbin/chkconfig
|
||||||
@ -150,6 +151,7 @@ ifconfig, netstat, route, and others.
|
|||||||
%patch62 -p1 -b .iface-crash
|
%patch62 -p1 -b .iface-crash
|
||||||
%patch63 -p1
|
%patch63 -p1
|
||||||
%patch64 -p1
|
%patch64 -p1
|
||||||
|
%patch65 -p1 -b .buffer
|
||||||
|
|
||||||
cp %SOURCE2 ./config.h
|
cp %SOURCE2 ./config.h
|
||||||
cp %SOURCE3 ./config.make
|
cp %SOURCE3 ./config.make
|
||||||
@ -265,6 +267,9 @@ exit 0
|
|||||||
%{_sysconfdir}/rc.d/init.d/netplugd
|
%{_sysconfdir}/rc.d/init.d/netplugd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 4 2008 Radek Vokál <rvokal@redhat.com> - 1.80-87
|
||||||
|
- fix buffer for newer kernels (#435554)
|
||||||
|
|
||||||
* Mon Feb 25 2008 Radek Vokal <rvokal@redhat.com> - 1.60-86
|
* Mon Feb 25 2008 Radek Vokal <rvokal@redhat.com> - 1.60-86
|
||||||
- fix for GCC 4.3
|
- fix for GCC 4.3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user