mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
bootctl: same entry path check case-insensitive
Some motherboards convert the path to uppercase under certain circumstances (e.g. after booting into the Boot Menu in the ASUS ROG STRIX B350-F GAMING).
This commit is contained in:
parent
fd37987da5
commit
5c2e595767
@ -684,7 +684,11 @@ static bool same_entry(uint16_t id, sd_id128_t uuid, const char *path) {
|
||||
return false;
|
||||
if (!sd_id128_equal(uuid, ouuid))
|
||||
return false;
|
||||
if (!streq_ptr(path, opath))
|
||||
|
||||
/* Some motherboards convert the path to uppercase under certain circumstances
|
||||
* (e.g. after booting into the Boot Menu in the ASUS ROG STRIX B350-F GAMING),
|
||||
* so use case-insensitive checking */
|
||||
if (!strcaseeq_ptr(path, opath))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user