]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623) (GH-28978)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Oct 2021 19:15:29 +0000 (12:15 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Oct 2021 19:15:29 +0000 (21:15 +0200)
commit67e10be3fee7c69d4ece26e75a0b7a84dab68ce5
tree1e4b62ac4e73adc9026389ef3a9c582ea2f3b103
parent7f70ba36706219181546c05363097f732827a081
bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623) (GH-28978)

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