]> git.saurik.com Git - apt.git/commit
apt-get: Create the temporary downloaded changelog inside tmpdir
authorGuillem Jover <guillem@debian.org>
Thu, 2 Oct 2014 15:48:13 +0000 (17:48 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Thu, 2 Oct 2014 20:05:25 +0000 (22:05 +0200)
commit4c370aad7539b7e3bc0028aa538f34b95a526cff
treeda1f2fe3d5d10b9597d89a74553664e692830700
parente503a4d5ac668d233c11f64a0dd0c6d20f3b2be1
apt-get: Create the temporary downloaded changelog inside tmpdir

The code is creating a secure temporary directory, but then creates
the changelog alongside the tmpdir in the same base directory. This
defeats the secure tmpdir creation, making the filename predictable.

Inject a '/' between the tmpdir and the changelog filename.
cmdline/apt-get.cc