[issue9246] os.getcwd() hardcodes max path len

STINNER Victor report at bugs.python.org
Fri Jun 17 15:55:17 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Simpler patch replacing 1026 constant by MAXPATHLEN. On my Linux box, MAXPATHLEN is 4096 and os.pathconf('/', 'PC_PATH_MAX') returns 4096. I am able to get a path of 4095 bytes using the patch.

----------
Added file: http://bugs.python.org/file22394/os_getcwd_maxpathlen.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9246>
_______________________________________


More information about the Python-bugs-list mailing list