aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-15 17:07:16 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-15 17:07:16 +0200
commitbf63832207f0e13e5bda564d2be993f10b0fb458 (patch)
tree4defdab1ad794949541d66c88451e6009634f3d2
parent4b12cf94f078dd54e2ed7a2202104ddf6f3be69a (diff)
downloadpasst-bf63832207f0e13e5bda564d2be993f10b0fb458.tar
passt-bf63832207f0e13e5bda564d2be993f10b0fb458.tar.gz
passt-bf63832207f0e13e5bda564d2be993f10b0fb458.tar.bz2
passt-bf63832207f0e13e5bda564d2be993f10b0fb458.tar.lz
passt-bf63832207f0e13e5bda564d2be993f10b0fb458.tar.xz
passt-bf63832207f0e13e5bda564d2be993f10b0fb458.tar.zst
passt-bf63832207f0e13e5bda564d2be993f10b0fb458.zip
conf, pasta: Create a new namespace also if probing netns options failed
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 483daeb..b92a7d9 100644
--- a/conf.c
+++ b/conf.c
@@ -1155,7 +1155,7 @@ void conf(struct ctx *c, int argc, char **argv)
usage(argv[0]);
}
- if (c->mode == MODE_PASTA && !c->pasta_netns_fd)
+ if (c->mode == MODE_PASTA && c->pasta_netns_fd <= 0)
pasta_start_ns(c);
if (nl_sock_init(c)) {