chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
execute: don't choke when systemd was compiled with a different CAP_LAST_CAP then...
[elogind.git]
/
src
/
nspawn.c
diff --git
a/src/nspawn.c
b/src/nspawn.c
index b5908d63fffc4320e179778900f35873fb021bb2..1ade6e25eff1c01a0b42ba1eaa397de28b6d45c4 100644
(file)
--- a/
src/nspawn.c
+++ b/
src/nspawn.c
@@
-332,7
+332,7
@@
static int drop_capabilities(void) {
unsigned long l;
unsigned long l;
- for (l = 0; l <= MAX(63LU, (unsigned long) CAP_LAST_CAP); l
++) {
+ for (l = 0; l <= MAX(63LU, (unsigned long) CAP_LAST_CAP); l++) {
unsigned i;
for (i = 0; i < ELEMENTSOF(retain); i++)
unsigned i;
for (i = 0; i < ELEMENTSOF(retain); i++)
@@
-347,7
+347,7
@@
static int drop_capabilities(void) {
/* If this capability is not known, EINVAL
* will be returned, let's ignore this. */
if (errno == EINVAL)
/* If this capability is not known, EINVAL
* will be returned, let's ignore this. */
if (errno == EINVAL)
-
continue
;
+
break
;
log_error("PR_CAPBSET_DROP failed: %m");
return -errno;
log_error("PR_CAPBSET_DROP failed: %m");
return -errno;