More idiomatic cleanup of 9f75a03571
.
Change-Id: Id936946375d2be56ba10bf3aa5804f52cdbecc2d
This commit is contained in:
parent
57134adecb
commit
9e7893bf86
1 changed files with 1 additions and 2 deletions
|
@ -53,8 +53,7 @@ static void drop_capabilities_bounding_set_if_needed() {
|
|||
continue;
|
||||
}
|
||||
|
||||
int err = prctl(PR_CAPBSET_DROP, i, 0, 0, 0);
|
||||
if (err < 0) {
|
||||
if (prctl(PR_CAPBSET_DROP, i, 0, 0, 0) == -1) {
|
||||
PLOG(FATAL) << "Could not drop capabilities";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue