From: Kay Sievers Date: Sat, 28 Feb 2015 11:21:25 +0000 (+0100) Subject: boot: efi - ignore .conf snippets starting with "auto-" X-Git-Tag: v219.0~535 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9d3dec15ae8ac6153038c9b994e6c4fc22045180;p=elogind.git boot: efi - ignore .conf snippets starting with "auto-" --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 1f2b6a7d6..3f8140ebf 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -1171,11 +1171,14 @@ static VOID config_load(Config *config, EFI_HANDLE *device, EFI_FILE *root_dir, continue; if (f->Attribute & EFI_FILE_DIRECTORY) continue; + len = StrLen(f->FileName); if (len < 6) continue; if (StriCmp(f->FileName + len - 5, L".conf") != 0) continue; + if (StrnCmp(f->FileName, L"auto-", 5) == 0) + continue; len = file_read(entries_dir, f->FileName, 0, 0, &content); if (len > 0)