]> granicus.if.org Git - python/commit
#4489: Use dir_fd in rmdir in _rmtree_safe_fd()
authorHynek Schlawack <hs@ox.cx>
Thu, 28 Jun 2012 13:30:47 +0000 (15:30 +0200)
committerHynek Schlawack <hs@ox.cx>
Thu, 28 Jun 2012 13:30:47 +0000 (15:30 +0200)
commit9f558ccefd649ab52b76cf51e0c7d19237b238f1
tree330483cc290857396d65b7662417a6bfc15b73b6
parentdde8cb0899a0feb5a71918cc11bbc4f7f19830d4
#4489: Use dir_fd in rmdir in _rmtree_safe_fd()

Now that rmdir supports dir_fd, we also use it. Attackers can't even delete
empty directories anymore.
Lib/shutil.py