This seems to be done intentionally by the patch debian/patches/netstat.c-assorted_changes.patch
It explicitly changes exit(0) to exit(1) at the end of flag_sta handling. I have no idea why. ** Changed in: net-tools (Ubuntu) Status: New => Triaged ** Changed in: net-tools (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1251563 Title: netstat command returns nozero even if successively executing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/net-tools/+bug/1251563/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs