]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Use POSIX_SPAWN_CLOEXEC_DEFAULT when possible
authorFrançois Degros <fdegros@chromium.org>
Thu, 31 Jul 2025 05:51:26 +0000 (15:51 +1000)
committerFrançois Degros <fdegros@chromium.org>
Thu, 31 Jul 2025 05:56:31 +0000 (15:56 +1000)
commit23ee7815208fae9fafc9b3cda74908c72db6fa6d
treea2ffb7a21aaebacc6e057d730d3e2f9f4d9b66d2
parent64bcf69ef8c266fa78c26c09fa88e7356ee20098
Use POSIX_SPAWN_CLOEXEC_DEFAULT when possible

Use posix_spawn() with POSIX_SPAWN_CLOEXEC_DEFAULT on systems that
define this constant, in order to avoid leaking file descriptors into
subprocesses.

Bug: https://github.com/libarchive/libarchive/issues/2520
libarchive/filter_fork_posix.c