strings: fix entering to the capability mode

Reported by:	markj
This commit is contained in:
oshogbo 2019-07-16 03:32:21 +00:00
parent d567ba7b62
commit 59c3949700

View File

@ -200,7 +200,7 @@ main(int argc, char **argv)
err(1, "Unable to initialize casper fileargs");
caph_cache_catpages();
if (caph_limit_stdio() < 0 && caph_enter_casper() < 0) {
if (caph_limit_stdio() < 0 || caph_enter_casper() < 0) {
fileargs_free(fa);
err(1, "Unable to enter capability mode");
}