diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-04-03 15:39:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 15:39:40 (GMT) |
commit | 345194de8cb3ceaa40d19353d30ba6e23b6e6edb (patch) | |
tree | 916f0777eb98cc840c15296e9a577099eb3b9f50 /Misc | |
parent | 03f7aaf953f00bf2953c21a057d8e6e88db659c8 (diff) | |
download | cpython-345194de8cb3ceaa40d19353d30ba6e23b6e6edb.zip cpython-345194de8cb3ceaa40d19353d30ba6e23b6e6edb.tar.gz cpython-345194de8cb3ceaa40d19353d30ba6e23b6e6edb.tar.bz2 |
GH-114847: Raise FileNotFoundError when getcwd() returns '(unreachable)' (#117481)
On Linux >= 2.6.36 with glibc < 2.27, `getcwd()` can return a relative
pathname starting with '(unreachable)'. We detect this and fail with
ENOENT, matching new glibc behaviour.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-04-02-20-30-12.gh-issue-114848.YX4pEc.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-04-02-20-30-12.gh-issue-114848.YX4pEc.rst b/Misc/NEWS.d/next/Library/2024-04-02-20-30-12.gh-issue-114848.YX4pEc.rst new file mode 100644 index 0000000..30b1a50 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-04-02-20-30-12.gh-issue-114848.YX4pEc.rst @@ -0,0 +1,2 @@ +Raise :exc:`FileNotFoundError` when ``getcwd()`` returns '(unreachable)', +which can happen on Linux >= 2.6.36 with glibc < 2.27. |