diff -u net-tools-1.60/debian/changelog net-tools-1.60/debian/changelog --- net-tools-1.60/debian/changelog +++ net-tools-1.60/debian/changelog @@ -1,3 +1,9 @@ +net-tools (1.60-25ubuntu2.1) trusty; urgency=medium + + * Fix "netstat -s passes but returns 1". (LP: #1251563) + + -- Mauricio Faria de Oliveira Thu, 03 Jul 2014 11:38:50 -0500 + net-tools (1.60-25ubuntu2) trusty; urgency=medium * Make the package Multi-Arch: foreign. diff -u net-tools-1.60/debian/patches/series net-tools-1.60/debian/patches/series --- net-tools-1.60/debian/patches/series +++ net-tools-1.60/debian/patches/series @@ -27,0 +28 @@ +Bug#541172-netstat.c-hardcoded-non-zero-exit-value.patch only in patch2: unchanged: --- net-tools-1.60.orig/debian/patches/Bug#541172-netstat.c-hardcoded-non-zero-exit-value.patch +++ net-tools-1.60/debian/patches/Bug#541172-netstat.c-hardcoded-non-zero-exit-value.patch @@ -0,0 +1,24 @@ +Description: fix non-zero exit status hardcoded in netstat.c-assorted_changes.patch +Bug-Ubuntu: https://bugs.launchpad.net/bugs/1251563 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541172 + +--- a/netstat.c ++++ b/netstat.c +@@ -1761,12 +1761,14 @@ + parsesnmp6(flag_raw, flag_tcp, flag_udp); + #else + printf("Address type not supported for stats\n"); ++ exit(1); + #endif +- } +- else ++ } else { + printf("Address type not supported for stats\n"); ++ exit(1); ++ } + } +- exit(1); ++ exit(0); + } + + if (flag_rou) {