nsenter: drop core when impossible happens
Message to user is less informative, but impossible events should be rare so core files are much appriciated for these cases. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
9905912fa7
commit
dfd8b1171b
|
@ -27,6 +27,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "strutils.h"
|
||||
#include "nls.h"
|
||||
|
@ -118,7 +119,7 @@ static void open_namespace_fd(int nstype, const char *path)
|
|||
return;
|
||||
}
|
||||
/* This should never happen */
|
||||
err(EXIT_FAILURE, "Unrecognized namespace type");
|
||||
assert(nsfile->nstype);
|
||||
}
|
||||
|
||||
static void continue_as_child(void)
|
||||
|
|
Loading…
Reference in New Issue