efivars: allow plus in the entry name

Closes #12572.
This commit is contained in:
Yu Watanabe 2019-05-19 06:18:00 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent f572f79e18
commit 030a5d78ed

View file

@ -909,7 +909,7 @@ bool efi_loader_entry_name_valid(const char *s) {
if (strlen(s) > FILENAME_MAX) /* Make sure entry names fit in filenames */
return false;
return in_charset(s, ALPHANUMERICAL "-_.");
return in_charset(s, ALPHANUMERICAL "+-_.");
}
char *efi_tilt_backslashes(char *s) {