]> git.ipfire.org Git - thirdparty/systemd.git/commit
executor: don't duplicate FD array to avoid double closing
authorLuca Boccassi <bluca@debian.org>
Mon, 11 Dec 2023 01:03:39 +0000 (01:03 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 11 Dec 2023 15:55:50 +0000 (15:55 +0000)
commit1eeaa93de36678001aeff329bc34e2b03d49f1e4
tree0e62b8dc47ba5718a114d958a3c2ac881dafa9e4
parenta9235a94883ddac3059d61883551e499205bf157
executor: don't duplicate FD array to avoid double closing

Just use ExecParam directly, as these are all internal to sd-exec now
anyway. Avoids double close when execution fails after FDs are set up
for inheritance and were already re-arranged.

Fixes https://github.com/systemd/systemd/issues/30412
src/core/exec-invoke.c
test/TEST-07-PID1/test.sh
test/units/testsuite-07.issue-30412.sh [new file with mode: 0755]