]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/exec-invoke: switch keep_fds to heap allocation 39491/head
authorMike Yuan <me@yhndnzj.com>
Thu, 30 Oct 2025 14:38:19 +0000 (15:38 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 30 Oct 2025 16:47:30 +0000 (17:47 +0100)
commita274cb0cffac63a50647dd6c793d0edd38d923fa
tree57dd37d9398149fe12fdd83458049005a2ea3d4a
parentf70346fb87052f37d446d2e9ccf915e5289b2b87
core/exec-invoke: switch keep_fds to heap allocation

Hardcoding total size of the array is error-prone, especially
considering the exeuctable_fd is added far below, so the '4' is
not entirely obvious. Also we seldomly do VLAs.
src/core/exec-invoke.c