Ross Lagerwall <rosslagerw...@gmail.com> added the comment:

Does it always segfault?

Try:
./python -c 'import os; print(os.fdlistdir(os.open("/tmp", os.O_RDONLY)))'

with various values for /tmp.

>From what I can see, the code for fdlistdir is basically the same as 
>os.listdir().
If possible, try os.listdir() as well.

----------
nosy: +rosslagerwall

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12852>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to