summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-10-19 22:15:20 +0300
committerLennart Poettering <lennart@poettering.net>2016-10-19 21:15:20 +0200
commit88a00ac517f282a0efa61c629031cacb38437855 (patch)
tree09db5360036ed2aee472726f677ce4fe08534f7f /src
parent9ee051b9c7623e148bf0d768cc2677aecf283fc8 (diff)
bootctl: don't try to remove esp_path (#4407)
This is a follow-up for 9ee051b9c7623
Diffstat (limited to 'src')
-rw-r--r--src/boot/bootctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
index 13cf7e94f0..dc11b0d9db 100644
--- a/src/boot/bootctl.c
+++ b/src/boot/bootctl.c
@@ -918,7 +918,7 @@ static int remove_binaries(const char *esp_path) {
if (q < 0 && r == 0)
r = q;
- for (i = ELEMENTSOF(efi_subdirs); i > 0; i--) {
+ for (i = ELEMENTSOF(efi_subdirs)-1; i > 0; i--) {
q = rmdir_one(esp_path, efi_subdirs[i-1]);
if (q < 0 && r == 0)
r = q;