From 59c3949700530cb63baa6e195899b707d59f9a86 Mon Sep 17 00:00:00 2001 From: oshogbo Date: Tue, 16 Jul 2019 03:32:21 +0000 Subject: [PATCH] strings: fix entering to the capability mode Reported by: markj --- contrib/elftoolchain/strings/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/elftoolchain/strings/strings.c b/contrib/elftoolchain/strings/strings.c index a84ff393e47d..7a34a40c3995 100644 --- a/contrib/elftoolchain/strings/strings.c +++ b/contrib/elftoolchain/strings/strings.c @@ -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"); }