mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09: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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user