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>
B
Barney Gale committed
345194de8cb3ceaa40d19353d30ba6e23b6e6edb
Parent: 03f7aaf
Committed by GitHub <noreply@github.com>
on 4/3/2024, 3:39:40 PM