]> git.saurik.com Git - apt.git/commit
ensure world-readability for trusted.gpg in postinst
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 1 Oct 2014 21:58:05 +0000 (23:58 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 1 Oct 2014 23:00:12 +0000 (01:00 +0200)
commit8b32e72c6f7143de4ec02f44e362b0df9e21e024
treec88cfc12b227728a5a72f5da099ad49e9a87bc02
parent9a61bb2176e6599094c575dec7184c3afd6f39bd
ensure world-readability for trusted.gpg in postinst

apt-key creates trusted.gpg if it needs it with 644 nowadays, but before
it ensured this, it was gpg creating it, which gives it by default 600.
Not a problem as long as our gpgv is run as root, but now that we drop
privileges we have to ensure that we can also read trusted.gpg files
created by earlier apt-key versions.

Closes: 647001
debian/apt.postinst
test/integration/test-apt-key