diff options
author | Guillem Jover <guillem@debian.org> | 2013-12-06 21:33:41 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-12-07 07:37:45 +0100 |
commit | ab56d08abe274182c0cab03425610ae61a074eff (patch) | |
tree | cd62bc2b35c39e0a74c6580cb823b9c6edc07af5 /debian | |
parent | 862a7443f712c09beba89bab061a711f0d727550 (diff) | |
download | dpkg-ab56d08abe274182c0cab03425610ae61a074eff.tar.gz |
dpkg: Keep the diversions and statoverride database files open
The database files must be kept open during an entire dpkg run, because
we need to check if the files have changed, and rely on the inode number,
which could get eagerly reused by the filesystem if these files get
replaced multiple times in maintainer scripts.
Add a code comment explaining the rationale, so that this does not happen
again in the future.
This partially reverts commit 579b90b61b24a538cf1709d7ceda0b38fec631b3.
Closes: #731524
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 2b17307a4..0a3327627 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,10 @@ dpkg (1.17.4) UNRELEASED; urgency=low - * + * Keep the diversions and statoverride database files open during dpkg + runs, to avoid eager inode number reuse by the filesystem if these files + get replaced multiple times in maintainer scripts, as we rely on the + inode numbers being different when checking if the databases need to + be reloaded. Regression introduced in 1.17.2. Closes: #731524 -- Guillem Jover <guillem@debian.org> Thu, 05 Dec 2013 11:08:49 +0100 |