This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients barry, eryksun, ucodery
Date 2021-10-22.02:35:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634870117.24.0.689432023171.issue45545@roundup.psfhosted.org>
In-reply-to
Content
Sorry, I seem to have missed your post last month when I scanned over the thread on python-ideas [1]. 

In POSIX, it could try to handle ENAMETOOLONG by walking the path forward with a relative chdir(). This could try to consume as many components as possible in each pass according to os.pathconf(cwd, os.pathconf_names['PC_PATH_MAX']), starting with cwd='/' and subsequently cwd=".". However, the return value is unreliable if the relative path traverses a mount point into a more restrictive filesystem [2]. It's probably good enough to just walk forward one component at a time.

---
[1] https://mail.python.org/archives/list/python-ideas@python.org/thread/C525UVPP3ALGTXDNFL2GFDV23KCHP3RL
[2] https://pubs.opengroup.org/onlinepubs/9699919799/functions/pathconf.html
History
Date User Action Args
2021-10-22 02:35:17eryksunsetrecipients: + eryksun, barry, ucodery
2021-10-22 02:35:17eryksunsetmessageid: <1634870117.24.0.689432023171.issue45545@roundup.psfhosted.org>
2021-10-22 02:35:17eryksunlinkissue45545 messages
2021-10-22 02:35:17eryksuncreate