]> git.ipfire.org Git - thirdparty/systemd.git/commit
efivars: adjust location of variable attribute
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Sep 2025 07:37:03 +0000 (09:37 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Sep 2025 07:39:19 +0000 (09:39 +0200)
commit4b974789799dab2c4f1aba6f028d9dfc518e291a
tree57c53fb573bbfae4d4f97c737afd961454c866fb
parent9db9d6806e398465a6366dfc5bdde2e24338ac29
efivars: adjust location of variable attribute

I also thought about converting efi_set_variable() to use writev, but we don't
have loop_writev. I'm not sure if the loop around write here is important.
Coinceivably, it could make a difference it we were writing a long value.
The loop was introduced in b7749eb517ff5dd379cf61ee9fb50a0105ab2c0f, without
much comment unfortunately. So it doesn't seem worth the risk of changing this
to not use a loop, and writing loop_writev just for this also seems overkill.
src/basic/efivars.c