[issue13734] Add a generic directory walker method to avoid symlink attacks

Nick Coghlan report at bugs.python.org
Sun Jan 8 12:44:27 CET 2012


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Another, possibly better, alternative would be to produce a tuple-subclass that adds a separate "dirfd" attribute to the (dirpath, subdirs, files) triple.

I'll stop talking about the walkdir implications here. Instead, I've created a corresponding issue on walkdir's own tracker:
https://bitbucket.org/ncoghlan/walkdir/issue/8/add-walkfd

----------

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


More information about the Python-bugs-list mailing list