strings: fix entering to the capability mode

Reported by:	markj
This commit is contained in:
Mariusz Zaborski 2019-07-16 03:32:21 +00:00
parent 43184d8e5c
commit 5ff84ed38f

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");
}