https://github.com/python/cpython
Revision 345194de8cb3ceaa40d19353d30ba6e23b6e6edb authored by Barney Gale on 03 April 2024, 15:39:40 UTC, committed by GitHub on 03 April 2024, 15:39:40 UTC
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>
1 parent 03f7aaf
History
Tip revision: 345194de8cb3ceaa40d19353d30ba6e23b6e6edb authored by Barney Gale on 03 April 2024, 15:39:40 UTC
GH-114847: Raise FileNotFoundError when getcwd() returns '(unreachable)' (#117481)
Tip revision: 345194d
File Mode Size
clinic
icons
layout
WinMain.c -rw-r--r-- 492 bytes
_testconsole.c -rw-r--r-- 4.4 KB
_wmimodule.cpp -rw-r--r-- 10.3 KB
classicAppCompat.can.xml -rw-r--r-- 6.9 KB
classicAppCompat.cat -rw-r--r-- 10.7 KB
classicAppCompat.sccd -rw-r--r-- 22.6 KB
config.c -rw-r--r-- 5.9 KB
config_minimal.c -rw-r--r-- 1.7 KB
crtlicense.txt -rw-r--r-- 1.7 KB
dl_nt.c -rw-r--r-- 808 bytes
errmap.h -rw-r--r-- 5.0 KB
frozen_dllmain.c -rw-r--r-- 3.9 KB
invalid_parameter_handler.c -rw-r--r-- 549 bytes
launcher-usage.txt -rw-r--r-- 1.1 KB
launcher.c -rw-r--r-- 65.6 KB
launcher2.c -rw-r--r-- 86.7 KB
msvcrtmodule.c -rw-r--r-- 16.8 KB
pyconfig.h.in -rw-r--r-- 22.3 KB
pylauncher.rc -rw-r--r-- 1.6 KB
pyshellext.cpp -rw-r--r-- 18.3 KB
pyshellext.def -rw-r--r-- 120 bytes
pyshellext.rc -rw-r--r-- 1.2 KB
python.manifest -rw-r--r-- 1.3 KB
python3dll.c -rwxr-xr-x 29.4 KB
python_exe.rc -rw-r--r-- 1.3 KB
python_nt.rc -rw-r--r-- 1.2 KB
python_uwp.cpp -rw-r--r-- 7.2 KB
python_ver_rc.h -rw-r--r-- 969 bytes
pythonw_exe.rc -rw-r--r-- 1.3 KB
readme.txt -rw-r--r-- 3.0 KB
sqlite3.rc -rw-r--r-- 1.4 KB
store_info.txt -rw-r--r-- 6.2 KB
validate_ucrtbase.py -rw-r--r-- 2.7 KB
venvlauncher.c -rw-r--r-- 13.2 KB
winreg.c -rw-r--r-- 66.4 KB
winsound.c -rw-r--r-- 7.3 KB

readme.txt

back to top