]> 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:40:44 +0000 (06:40 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 13:40:44 +0000 (06:40 -0700)
commit2ae2235c7a7627725df40c7875245cd17d90f39f
tree043b86247eb9ce8e3f487984f8a65d4b80632693
parenta11158ecef8cff795f7db8f4047cbd20cc9cf37e
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