remove output of expected error
authorIan Kelling <iank@fsf.org>
Sun, 30 Jun 2019 19:58:35 +0000 (15:58 -0400)
committerIan Kelling <iank@fsf.org>
Sun, 30 Jun 2019 19:58:35 +0000 (15:58 -0400)
newns

diff --git a/newns b/newns
index dbc922198a5e4e2ee820d70e0e9365cb3c85c036..5075181714569a1d6e8980bb27af27e0b3eb4ddc 100755 (executable)
--- a/newns
+++ b/newns
@@ -331,7 +331,7 @@ stop() {
   if ! $existing; then
     if nat -C &>/dev/null; then nat -D; fi
   fi
-  dexec iptables -D FORWARD -i $v0 -j ACCEPT ||:
+  dexec iptables -D FORWARD -i $v0 -j ACCEPT &>/dev/null ||:
   if $create && [[ -e /var/run/netns/$nn ]]; then
     ip netns del $nn
   fi