]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Aug 2021 13:42:51 +0000 (06:42 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 13:42:51 +0000 (06:42 -0700)
commit791c28a56f043618111a19377f8527326037230e
treebd017f698e9cf4226c9cf33e88103f647b20b7b7
parent693a661478036dc2c5b48e138dd09320a972c25a
bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623)

Fix the os.set_inheritable() function on FreeBSD 14 for file
descriptor opened with the O_PATH flag: ignore the EBADF error on
ioctl(), fallback on the fcntl() implementation.
(cherry picked from commit c24896c0e3b32c8a9f614ef51366007b67d5c665)

Co-authored-by: Victor Stinner <vstinner@python.org>
Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst [new file with mode: 0644]
Python/fileutils.c