diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-10-19 22:15:20 +0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-10-19 21:15:20 +0200 |
commit | 88a00ac517f282a0efa61c629031cacb38437855 (patch) | |
tree | 09db5360036ed2aee472726f677ce4fe08534f7f /src/boot | |
parent | 9ee051b9c7623e148bf0d768cc2677aecf283fc8 (diff) |
bootctl: don't try to remove esp_path (#4407)
This is a follow-up for 9ee051b9c7623
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/bootctl.c | 2 |
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; |