]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: fix typo
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Mar 2022 17:44:14 +0000 (18:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 08:30:21 +0000 (09:30 +0100)
src/boot/bootctl.c

index 2035fa0d256cc55a309a14d11a64c6598628a3dc..86b4d7fd149d05cacc214067f524deaf29be1b05 100644 (file)
@@ -2044,7 +2044,7 @@ static int verb_remove(int argc, char *argv[], void *userdata) {
 
         q = remove_entry_directory(arg_esp_path);
         if (q < 0 && r >= 0)
-                r = 1;
+                r = q;
 
         if (arg_xbootldr_path) {
                 /* Remove the latter two also in the XBOOTLDR partition if it exists */