[New-bugs-announce] [issue2722] os.getcwd fails for long path names on linux

Jean-Paul Calderone report at bugs.python.org
Wed Apr 30 02:01:54 CEST 2008


New submission from Jean-Paul Calderone <exarkun at divmod.com>:

$ python -c "print len('`pwd`'); import os; print os.getcwd()"
1174
Traceback (most recent call last):
  File "<string>", line 1, in ?
OSError: [Errno 34] Numerical result out of range
$

The getcwd man page documents the ERANGE failure and suggests that the
calling application allocate a larger buffer and try again.

----------
components: Library (Lib)
messages: 65987
nosy: exarkun
severity: normal
status: open
title: os.getcwd fails for long path names on linux
versions: Python 2.4

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2722>
__________________________________


More information about the New-bugs-announce mailing list