Resolves: #2077846 - net-tools utilities display incorrect statistics for interfaces with 15-character names
This commit is contained in:
parent
447cdfc683
commit
e09dd130ef
15
net-tools-iface-name-too-long.patch
Normal file
15
net-tools-iface-name-too-long.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/lib/interface.c.old b/lib/interface.c
|
||||||
|
index 998830a..d35329f 100644
|
||||||
|
--- a/lib/interface.c.old
|
||||||
|
+++ b/lib/interface.c
|
||||||
|
@@ -249,7 +249,10 @@ static const char *get_name(char **namep, const char *p)
|
||||||
|
*name++ = *p++;
|
||||||
|
count++;
|
||||||
|
if (count == (IFNAMSIZ-1))
|
||||||
|
+ {
|
||||||
|
+ p++;
|
||||||
|
break;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
*name++ = '\0';
|
||||||
|
return p;
|
@ -3,7 +3,7 @@
|
|||||||
Summary: Basic networking tools
|
Summary: Basic networking tools
|
||||||
Name: net-tools
|
Name: net-tools
|
||||||
Version: 2.0
|
Version: 2.0
|
||||||
Release: 0.63.%{checkout}%{?dist}
|
Release: 0.64.%{checkout}%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://sourceforge.net/projects/net-tools/
|
URL: http://sourceforge.net/projects/net-tools/
|
||||||
|
|
||||||
@ -38,6 +38,7 @@ Patch23: net-tools-interface-name-len.patch
|
|||||||
Patch24: net-tools-correct-exit-code.patch
|
Patch24: net-tools-correct-exit-code.patch
|
||||||
Patch25: net-tools-spelling-error.patch
|
Patch25: net-tools-spelling-error.patch
|
||||||
Patch26: net-tools-route-inet6-output.patch
|
Patch26: net-tools-route-inet6-output.patch
|
||||||
|
Patch27: net-tools-iface-name-too-long.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: bluez-libs-devel
|
BuildRequires: bluez-libs-devel
|
||||||
@ -74,6 +75,7 @@ cp %SOURCE8 ./man/en_US
|
|||||||
%patch24 -p1 -b .exit-codes
|
%patch24 -p1 -b .exit-codes
|
||||||
%patch25 -p1 -b .spelling
|
%patch25 -p1 -b .spelling
|
||||||
%patch26 -p1 -b .inet6-output
|
%patch26 -p1 -b .inet6-output
|
||||||
|
%patch27 -p1 -b .iface-name-too-long
|
||||||
|
|
||||||
touch ./config.h
|
touch ./config.h
|
||||||
|
|
||||||
@ -146,6 +148,9 @@ install -D -p -m 644 %{SOURCE9} %{buildroot}%{_unitdir}/arp-ethers.service
|
|||||||
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 23 2022 Michal Ruprich <mruprich@redhat.com> - 2.0-0.64.20160912git
|
||||||
|
- Resolves: #2077846 - net-tools utilities display incorrect statistics for interfaces with 15-character names
|
||||||
|
|
||||||
* Wed Aug 03 2022 Michal Ruprich <mruprich@redhat.com> - 2.0-0.63.20160912git
|
* Wed Aug 03 2022 Michal Ruprich <mruprich@redhat.com> - 2.0-0.63.20160912git
|
||||||
- Resolves: #2114821 - The output of `route -A inet6` does not display properly when the 'Use' column output is over 6 digits
|
- Resolves: #2114821 - The output of `route -A inet6` does not display properly when the 'Use' column output is over 6 digits
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user