From 88647a0819df87f10ff3bfe9f9f1bf961894af44 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Thu, 28 Jan 2021 09:47:31 +0100 Subject: [PATCH] Fix build --- caps.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caps.cc b/caps.cc index c23268a..9c4a937 100644 --- a/caps.cc +++ b/caps.cc @@ -257,8 +257,8 @@ bool initNs(nsjconf_t* nsjconf) { continue; } if (prctl(PR_CAPBSET_READ, (unsigned long)i.val, 0UL, 0UL, 0UL) == - -1 && errno = EINVAL) { - LOG_D("Skipping unsupported capability: %s", i.name.c_str()); + -1 && errno == EINVAL) { + LOG_D("Skipping unsupported capability: %s", i.name); continue; } dbgmsg.append(" ").append(i.name); -- 2.34.1