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:
Sami Kerola 2013-01-20 18:04:55 +00:00 committed by Karel Zak
parent 9905912fa7
commit dfd8b1171b
1 changed files with 2 additions and 1 deletions

View File

@ -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)