From: Antonio Alvarez Feijoo Date: Fri, 5 Apr 2024 13:24:40 +0000 (+0200) Subject: sysext: do not return 0 if `unmerge()` fails in the `refresh()` function. X-Git-Tag: v256-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ebfef5c96d09bed31a75e1ccba0b63a3cd1a332;p=thirdparty%2Fsystemd.git 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 --- 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) {