From 1c2b6177031f665f2117b8683a5d1a067b05ad7d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 Mar 2022 18:44:14 +0100 Subject: [PATCH] bootctl: fix typo --- src/boot/bootctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 2035fa0d25..86b4d7fd14 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -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 */