Bug#541172-netstat.c-exit-codes.patch 521 Bytes
Newer Older
1 2
--- a/netstat.c
+++ b/netstat.c
3 4
@@ -2201,12 +2201,14 @@
             parsesnmp(flag_raw, flag_tcp, flag_udp, flag_sctp);
5 6 7 8 9 10 11 12 13 14 15 16 17
 #else
             ENOSUPP("netstat", "AF INET");
+            exit(1);
 #endif
         } else if(!strcmp(afname, "inet6")) {
 #if HAVE_AFINET6
             parsesnmp6(flag_raw, flag_tcp, flag_udp);
 #else
             ENOSUPP("netstat", "AF INET6");
+            exit(1);
 #endif
         } else {
           printf(_("netstat: No statistics support for specified address family: %s\n"), afname);