]> 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 22:44:47 +0000 (00:44 +0200)
commit339bc464875616d214cc3b73f5d41ced10c820b9
tree6337fc7828189e80d215f5d746e87eb5553e5494
parente3a4cde86155548d9779aa4e827a0a2a6b598c44
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