summaryrefslogtreecommitdiff
path: root/apt-private/acqprogress.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2017-01-19 02:13:54 +0100
committerJulian Andres Klode <jak@debian.org>2017-02-22 16:53:46 +0100
commit2e5726edcac4fc9228c6b16281365c3ade189b8b (patch)
treec4d8d05906fb8fbbf1c7cd04725e3f51ab2b75ce /apt-private/acqprogress.cc
parentb234a610a3818af69952bf85c389588a99b4349f (diff)
avoid validate/delete/load race in cache generation
Keeping the Fd of the cache file we have validated around to later load it into the mmap ensures not only that we load the same file (which wouldn't really be a problem in practice), but that this file also still exists and wasn't deleted e.g. by a 'apt clean' call run in parallel. (cherry picked from commit 06606f073210fe3902fe92d5ff77fa1ab621b972)
Diffstat (limited to 'apt-private/acqprogress.cc')
0 files changed, 0 insertions, 0 deletions