[issue9246] os.getcwd() hardcodes max path len
Martin v. Löwis
report at bugs.python.org
Fri Jun 17 17:04:06 CEST 2011
Martin v. Löwis <martin at v.loewis.de> added the comment:
> I can adapt os_getcwd_buffer-2.patch to support Solaris/OpenBSD, but
> do we need a dynamic buffer? (do we need to support OS without
> PATH_MAX)
>From a practicality point of view, we need to make no change at all:
nobody sane ever has a current working directory path of more than
1000 characters. Even if people have very long path names, they
don't make them the current working directory.
So if anything is changed, it's for purity only. Then, for purity,
we should get it right and support any path that the operating system
supports.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9246>
_______________________________________
More information about the Python-bugs-list
mailing list