aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>2024-04-05 15:24:40 +0200
committerLennart Poettering <lennart@poettering.net>2024-04-23 16:15:55 +0200
commit8ebfef5c96d09bed31a75e1ccba0b63a3cd1a332 (patch)
treed40819d073858691ac56f70488ef9fe18628595a
parentMerge pull request #32435 from YHNdnzj/followup (diff)
downloadsystemd-8ebfef5c96d09bed31a75e1ccba0b63a3cd1a332.tar.xz
systemd-8ebfef5c96d09bed31a75e1ccba0b63a3cd1a332.zip
sysext: do not return 0 if `unmerge()` fails in the `refresh()` function.
Actually, return the result of `unmerge()` if it is called in the `refresh()` function. Fixes 8662fcbcf1f31725998bd1ebe706ac813b053962
-rw-r--r--src/sysext/sysext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c
index 7c970705467..9248e67127f 100644
--- a/src/sysext/sysext.c
+++ b/src/sysext/sysext.c
@@ -2019,7 +2019,7 @@ static int refresh(
* 4. If there was no overlayfs mount so far, and no extensions installed, we implement a NOP.
*/
- return 0;
+ return r;
}
static int verb_refresh(int argc, char **argv, void *userdata) {