]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi-loader: Add @ to valid characters
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 5 Oct 2024 10:20:50 +0000 (12:20 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 9 Oct 2024 18:36:57 +0000 (20:36 +0200)
This is now a valid character with the introduction of multi UKI
profiles, so update the function to allow it.

src/shared/efi-loader.c

index 74144af95ab058691525b750170730698247d900..ae0b2b1fdc8e1fa73b09942c7cbb1606dd3a50a0 100644 (file)
@@ -364,5 +364,5 @@ bool efi_loader_entry_name_valid(const char *s) {
         if (!filename_is_valid(s)) /* Make sure entry names fit in filenames */
                 return false;
 
-        return in_charset(s, ALPHANUMERICAL "+-_.");
+        return in_charset(s, ALPHANUMERICAL "+-_.@");
 }