]> git.saurik.com Git - apt.git/commitdiff
pkgAcqArchive::QueueNext(): change owner/permission of DestFile
authorMichael Vogt <mvo@ubuntu.com>
Wed, 8 Oct 2014 07:16:59 +0000 (09:16 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Wed, 8 Oct 2014 07:44:06 +0000 (09:44 +0200)
The code was using FinalFile before but we only test the existance
of DestFile so we use that instead.

apt-pkg/acquire-item.cc

index f630129b9fc379ecf2af5cc1111ba3f28ce3a175..1ff3e32dcc4d06af1190f78eee045a3787ce7967 100644 (file)
@@ -2480,7 +2480,7 @@ bool pkgAcqArchive::QueueNext()
         else
         {
            PartialSize = Buf.st_size;
-           ChangeOwnerAndPermissionOfFile("pkgAcqArchive::QueueNext", FinalFile.c_str(), "_apt", "root", 0600);
+           ChangeOwnerAndPermissionOfFile("pkgAcqArchive::QueueNext", DestFile.c_str(), "_apt", "root", 0600);
         }
       }