[Bug 917845] Re: apt-ftparchive sets permission of Packages file to 001 to

Martin Pitt martin.pitt at ubuntu.com
Mon Mar 5 16:39:22 UTC 2012


Hello peter, or anyone else affected,

Accepted apt into lucid-proposed. The package will build now and be
available in a few hours. Please test and give feedback here. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Thank you in advance!

** Also affects: apt (Ubuntu Lucid)
   Importance: Undecided
       Status: New

** Changed in: apt (Ubuntu)
       Status: Triaged => Fix Released

** Changed in: apt (Ubuntu Lucid)
       Status: New => Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/917845

Title:
  apt-ftparchive sets permission of Packages file to 001 to

Status in “apt” package in Ubuntu:
  Fix Released
Status in “apt” source package in Lucid:
  Fix Committed
Status in “apt” package in Debian:
  Fix Released

Bug description:
  [Impact]
  When using apt-ftparchive with a config file, BinDirectory blocks don't inherit the default file permissions, causing them to end up with a permission of 0001

  [Development Fix]
  Fixed upstream in http://anonscm.debian.org/loggerhead/apt/debian-sid/revision/2013 ; incorporated into releases after Lucid.

  [Stable Fix]
  Cherry-picked the upstream patch - http://bazaar.launchpad.net/~l3on/ubuntu/lucid/apt/fix-917845/revision/107

  [Text Case]
  (lucid-amd64)root at caron:~# mkdir -p apt/conf
  (lucid-amd64)root at caron:~# mkdir -p apt/dists/sid/{main,contrib,non-free}/{binary-i386,source}
  (lucid-amd64)root at caron:~# mkdir -p apt/pool/{main,contrib,non-free}
  (lucid-amd64)root at caron:~# cd apt/
  (lucid-amd64)root at caron:~/apt# cp /usr/share/doc/apt-utils/examples/apt-ftparchive.conf conf/
  (lucid-amd64)root at caron:~/apt# apt-ftparchive generate conf/apt-ftparchive.conf
  [...]
  (lucid-amd64)root at caron:~/apt# ls -l dists/sid/main/binary-i386/Packages

  Broken result: ---------x 1 root root 0 Feb 29 09:37 dists/sid/main/binary-i386/Packages
  Fixed result:  -rw-r--r-- 1 root root 0 Feb 29 11:11 dists/sid/main/binary-i386/Packages

  [Regression Potential]
  Patch is isolated, straightforward, and contained within the apt-ftparchive tool.

  [Original Report]
  This is the same as Debian Bug#595922 and was introduced in 0.7.25.3ubuntu9.9. It was not present in 0.7.25.3ubuntu9.7.

  apt-ftparchive changes permissions on the Packages files to 001:

  strace -F -e chmod /usr/bin/apt-ftparchive generate conf/apt-
  ftparchive.conf

  chmod("./dists/lucid/main/binary-amd64/Packages.bz2", 01) = 0
  chmod("./dists/lucid/main/binary-amd64/Packages.gz", 01) = 0
  chmod("./dists/lucid/main/binary-amd64/Packages", 01) = 0

  E: Could not open file ./dists/lucid/main/binary-amd64/Packages - open (13: Permission denied)
  E: Error processing contents dists/lucid/Contents-amd64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/917845/+subscriptions




More information about the foundations-bugs mailing list