lnstat should dump (-d) to stdout instead of stderr (#736332)
This commit is contained in:
parent
a379e170de
commit
edca587179
@ -2,7 +2,7 @@
|
|||||||
Summary: Advanced IP routing and network device configuration tools
|
Summary: Advanced IP routing and network device configuration tools
|
||||||
Name: iproute
|
Name: iproute
|
||||||
Version: 2.6.39
|
Version: 2.6.39
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/%{name}2
|
URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/%{name}2
|
||||||
Source0: http://devresources.linuxfoundation.org/dev/iproute2/download/%{name}2-%{version}.tar.gz
|
Source0: http://devresources.linuxfoundation.org/dev/iproute2/download/%{name}2-%{version}.tar.gz
|
||||||
@ -20,6 +20,7 @@ Patch8: iproute2-2.6.35-print-route.patch
|
|||||||
Patch9: iproute2-print-route-u32.patch
|
Patch9: iproute2-print-route-u32.patch
|
||||||
Patch10: iproute2-2.6.39-create-peer-veth-without-a-name.patch
|
Patch10: iproute2-2.6.39-create-peer-veth-without-a-name.patch
|
||||||
Patch11: iproute2-2.6.39-xtables6.patch
|
Patch11: iproute2-2.6.39-xtables6.patch
|
||||||
|
Patch12: iproute2-2.6.39-lnstat-dump-to-stdout.patch
|
||||||
|
|
||||||
License: GPLv2+ and Public Domain
|
License: GPLv2+ and Public Domain
|
||||||
BuildRequires: tex(latex) tex(dvips) linuxdoc-tools
|
BuildRequires: tex(latex) tex(dvips) linuxdoc-tools
|
||||||
@ -64,6 +65,7 @@ sed -i "s/_VERSION_/%{version}/" man/man8/ss.8
|
|||||||
%patch9 -p1 -b .print-route-u32
|
%patch9 -p1 -b .print-route-u32
|
||||||
%patch10 -p1 -b .peer-veth-without-name
|
%patch10 -p1 -b .peer-veth-without-name
|
||||||
%patch11 -p1 -b .xtables6
|
%patch11 -p1 -b .xtables6
|
||||||
|
%patch12 -p1 -b .lnstat-dump-to-stdout
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LIBDIR=/%{_libdir}
|
export LIBDIR=/%{_libdir}
|
||||||
@ -185,6 +187,9 @@ done
|
|||||||
%{_includedir}/libnetlink.h
|
%{_includedir}/libnetlink.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 07 2011 Petr Sabata <contyk@redhat.com> - 2.6.39-4
|
||||||
|
- lnstat should dump (-d) to stdout instead of stderr (#736332)
|
||||||
|
|
||||||
* Tue Jul 26 2011 Petr Sabata <contyk@redhat.com> - 2.6.39-3
|
* Tue Jul 26 2011 Petr Sabata <contyk@redhat.com> - 2.6.39-3
|
||||||
- Rebuild for xtables7
|
- Rebuild for xtables7
|
||||||
|
|
||||||
|
13
iproute2-2.6.39-lnstat-dump-to-stdout.patch
Normal file
13
iproute2-2.6.39-lnstat-dump-to-stdout.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/misc/lnstat.c b/misc/lnstat.c
|
||||||
|
index 32ab6a4..431bfc7 100644
|
||||||
|
--- a/misc/lnstat.c
|
||||||
|
+++ b/misc/lnstat.c
|
||||||
|
@@ -322,7 +322,7 @@ int main(int argc, char **argv)
|
||||||
|
int i;
|
||||||
|
struct table_hdr *header;
|
||||||
|
case MODE_DUMP:
|
||||||
|
- lnstat_dump(stderr, lnstat_files);
|
||||||
|
+ lnstat_dump(stdout, lnstat_files);
|
||||||
|
break;
|
||||||
|
case MODE_NORMAL:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user