]> git.saurik.com Git - apt.git/commit
ignore for _apt inaccessible TMPDIR in pkgAcqChangelog
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 31 Aug 2015 00:31:10 +0000 (02:31 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 31 Aug 2015 00:31:10 +0000 (02:31 +0200)
commitdd6da7d2392e2ad35c444ebc2d7bc2308380530c
tree905b124b2b99dcb5ff212918332715900776136b
parent3090ae6972fd0e15767a96708c248f3ab87502f2
ignore for _apt inaccessible TMPDIR in pkgAcqChangelog

Using libpam-tmpdir caused us to create our download tmp directory in
root's private tmp before changing to _apt, which wouldn't have access
to it.

By extending our GetTempDir method with an optional wrapper changing the
effective user, we can test if a given user can access the directory and
ignore TMPDIR if not instead of ignoring TMPDIR completely.

Closes: 797270
apt-pkg/acquire-item.cc
apt-pkg/contrib/fileutl.cc
apt-pkg/contrib/fileutl.h