summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-19 19:15:29 (GMT)
committerGitHub <noreply@github.com>2021-10-19 19:15:29 (GMT)
commit67e10be3fee7c69d4ece26e75a0b7a84dab68ce5 (patch)
tree1e4b62ac4e73adc9026389ef3a9c582ea2f3b103 /Misc/NEWS.d/next
parent7f70ba36706219181546c05363097f732827a081 (diff)
downloadcpython-67e10be3fee7c69d4ece26e75a0b7a84dab68ce5.zip
cpython-67e10be3fee7c69d4ece26e75a0b7a84dab68ce5.tar.gz
cpython-67e10be3fee7c69d4ece26e75a0b7a84dab68ce5.tar.bz2
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>
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r--Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst b/Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst
new file mode 100644
index 0000000..b1f2254
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-08-06-13-00-28.bpo-44849.O78F_f.rst
@@ -0,0 +1,4 @@
+Fix the :func:`os.set_inheritable` function on FreeBSD 14 for file descriptor
+opened with the :data:`~os.O_PATH` flag: ignore the :data:`~errno.EBADF`
+error on ``ioctl()``, fallback on the ``fcntl()`` implementation. Patch by
+Victor Stinner.