fix access race when traversing the filesystem
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Wed, 4 Jul 2018 08:29:09 +0000 (10:29 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 1 Feb 2020 14:14:06 +0000 (15:14 +0100)
commitc059a22123b4e3966d548082a97e9ad8a0e2dfa1
treeade2b68b8d1485be02018ebb7e5d6d41a3592c85
parent3e9b81bbc9af3ab221a12363bbaf61bc1a1ca663
fix access race when traversing the filesystem

Related to issue #6440.

Yet another race caused by mishandling of access(3); fix by
acquiring an fd to the directory and use that for iteration.
Handle ENOENT around open(2) and throw out the call to
os.path.exists().
deltatar/deltatar.py