fix crash on unaccessible input files
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Wed, 4 Jul 2018 08:05:57 +0000 (10:05 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 1 Feb 2020 14:14:06 +0000 (15:14 +0100)
commit3e9b81bbc9af3ab221a12363bbaf61bc1a1ca663
treeb815accaf08abfff859be7f169d73db49b7b0298
parent6ff6937a0feb9c353e2554e34cc1c96999d15f2d
fix crash on unaccessible input files

Fix i2n bug #6440: race condition between access(3) and open(2).

This flaw exists in both the full and diff backup code. Deltatar
must not assume that the verdict returned by access() will hold
true later. Emit a warning if we receive ENOENT on later calls to
open(), but continue regardless.
deltatar/deltatar.py