]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: Use lower case string constants in case-insensitive comparisons.
authorAlexander Kurtz <alexander@kurtz.be>
Thu, 21 Jul 2016 00:20:12 +0000 (02:20 +0200)
committerAlexander Kurtz <alexander@kurtz.be>
Thu, 21 Jul 2016 00:20:12 +0000 (02:20 +0200)
src/boot/bootctl.c

index 0d4294872030f8b7209f517da10ccf3c23bc789d..52d79f1c6783f238db333279fcbf26a727e0709b 100644 (file)
@@ -797,7 +797,7 @@ static int remove_boot_efi(const char *esp_path) {
                 if (!endswith_no_case(de->d_name, ".efi"))
                         continue;
 
-                if (!startswith_no_case(de->d_name, "Boot"))
+                if (!startswith_no_case(de->d_name, "boot"))
                         continue;
 
                 fd = openat(dirfd(d), de->d_name, O_RDONLY|O_CLOEXEC);