]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysext: do not return 0 if `unmerge()` fails in the `refresh()` function.
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 5 Apr 2024 13:24:40 +0000 (15:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Apr 2024 14:15:55 +0000 (16:15 +0200)
Actually, return the result of `unmerge()` if it is called in the `refresh()`
function.

Fixes 8662fcbcf1f31725998bd1ebe706ac813b053962

src/sysext/sysext.c

index 7c9707054676cb4380bb267945896d191572d1f8..9248e67127f30940e2f273624c808caf4bd09b19 100644 (file)
@@ -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) {