chiark / gitweb /
Do not leak a harmless fd into the service program environment
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Dec 2021 01:11:01 +0000 (01:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Dec 2021 01:12:21 +0000 (01:12 +0000)
commit11f9571725cbfee8ccf44f7ead3d1c0530b38e2d
tree2e67a78ad030b185e91d55a34d22929662ccfaed
parent2a0cfd6070829d4da0fdb3c8980369c7ee27cd39
Do not leak a harmless fd into the service program environment

I have double-checked and this fd is the other end of a socketpair
that the server closes immediately after it reads our byte, so this is
indeed purely a harmless leak.

Closes: #864876
Reported-by: Ben Harris <bjh21@cam.ac.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
servexec.c