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

Antoine Pitrou report at bugs.python.org
Tue Jan 31 14:51:37 CET 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

One other thing: is it deliberate to silence errors in the following snippet?

+        try:
+            names = fdlistdir(topfd)
+        except error as err:
+            if onerror is not None:
+                onerror(err)
+            return

----------

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


More information about the Python-bugs-list mailing list