summaryrefslogtreecommitdiff
path: root/src/shared/capability.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/capability.c')
-rw-r--r--src/shared/capability.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/capability.c b/src/shared/capability.c
index f8ee1c6838..b49c514009 100644
--- a/src/shared/capability.c
+++ b/src/shared/capability.c
@@ -156,7 +156,8 @@ int capability_bounding_set_drop(uint64_t drop, bool right_now) {
r = 0;
finish:
- cap_set_proc(after_cap);
+ if (cap_set_proc(after_cap) < 0)
+ return -errno;
return r;
}