bootctl: don't try to remove esp_path (#4407)

This is a follow-up for 9ee051b9c7
This commit is contained in:
Evgeny Vereshchagin 2016-10-19 22:15:20 +03:00 committed by Lennart Poettering
parent 9ee051b9c7
commit 88a00ac517

View file

@ -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;