[issue14702] os.makedirs breaks under autofs directories
Hynek Schlawack
report at bugs.python.org
Sat May 5 13:37:24 CEST 2012
Hynek Schlawack <hs at ox.cx> added the comment:
Charles, I don't think you can blame autofs here. The problem at hand is that makedirs() never checks whether the directory exists (that would trigger the mount too I presume). Instead, it tries a mkdir and looks if it gets an EEXIST.
If you try that approach in this case where /net is non-writable and /net/prodigy appears only on demand, it fails with an EPERM instead.
Have a look at http://hg.python.org/cpython/file/8215aaccc9dd/Lib/os.py#l136 especially line 151.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14702>
_______________________________________
More information about the Python-bugs-list
mailing list