From: Evgeny Vereshchagin Date: Wed, 19 Oct 2016 19:15:20 +0000 (+0300) Subject: bootctl: don't try to remove esp_path (#4407) X-Git-Tag: v234~946 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88a00ac517f282a0efa61c629031cacb38437855;p=platform%2Fupstream%2Fsystemd.git bootctl: don't try to remove esp_path (#4407) This is a follow-up for 9ee051b9c7623 --- diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 13cf7e9..dc11b0d 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;