diff options
author | David Kalnischkies <david@kalnischkies.de> | 2017-01-19 02:13:54 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-02-22 16:53:46 +0100 |
commit | 2e5726edcac4fc9228c6b16281365c3ade189b8b (patch) | |
tree | c4d8d05906fb8fbbf1c7cd04725e3f51ab2b75ce /apt-private/private-update.cc | |
parent | b234a610a3818af69952bf85c389588a99b4349f (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/private-update.cc')
0 files changed, 0 insertions, 0 deletions