]> git.saurik.com Git - apt.git/commit - apt-pkg/contrib/fileutl.cc
test if TMPDIR is accessible before using
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 20 Oct 2014 10:00:46 +0000 (12:00 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 20 Oct 2014 12:42:47 +0000 (14:42 +0200)
commit0d303f1764645284b33924c9be8bf29f0a32ca5c
treea8765da8d91f77762e62bdca1b11fc5c70bbb1d6
parent4fa34122cbe347d21b3a162ff2fa75dd2e73c3a8
test if TMPDIR is accessible before using

Private temporary directories as created by e.g. libpam-tmpdir are nice,
but they are also very effective in preventing our priviledge dropping
to work as TMPDIR will be set to a directory only root has access to, so
working with it as _apt will fail. We circumvent this by extending our
check for a usable TMPDIR setting by checking access rights.

Closes: 765951
apt-pkg/contrib/fileutl.cc
cmdline/apt-key.in
test/integration/framework
test/integration/test-bug-604401-files-are-directories
test/libapt/fileutl_test.cc