mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
efivars: don't crash when somebody wants to remove an efi variable
This corrects b3c908b4a2
by allowing a
NULL value again for variable deletion.
Fixes: #6753
This commit is contained in:
parent
8cc7661dc5
commit
e1e26566ec
@ -269,7 +269,7 @@ int efi_set_variable(
|
||||
_cleanup_close_ int fd = -1;
|
||||
|
||||
assert(name);
|
||||
assert(value);
|
||||
assert(value || size == 0);
|
||||
|
||||
if (asprintf(&p,
|
||||
"/sys/firmware/efi/efivars/%s-%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
|
||||
|
Loading…
Reference in New Issue
Block a user