]> git.saurik.com Git - apt.git/commit
use always priv-dropping for changelog download as root
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 23 Aug 2015 11:46:35 +0000 (13:46 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Thu, 27 Aug 2015 09:27:45 +0000 (11:27 +0200)
commitd12561703c7776f665b68c91bddb28dea0728894
treea6ce47161e8dfa2670fdbda7551e441203b51040
parent3a8776a37af38127fb04565959e8e0e449eb04a4
use always priv-dropping for changelog download as root

First of, the temporary directory we download the changelog to needs to
be owned by _apt, but that also means that we don't need to check if we
could/should drop privs as the download happens to a dedicated tempdir
and only after that it is moved to its final location by a privileged user.
apt-pkg/acquire-item.cc
cmdline/apt-get.cc
test/integration/test-apt-get-changelog