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

Launchpad Bug Tracker 917845 at bugs.launchpad.net
Wed Mar 14 19:48:09 UTC 2012


This bug was fixed in the package apt - 0.7.25.3ubuntu9.11

---------------
apt (0.7.25.3ubuntu9.11) lucid-proposed; urgency=low

  * New patch from upstream ftparchive-fix-filemode-settings.patch:
    - Ensure that BinDirectory as well as Tree settings get the correct
      default FileMode setting (LP: #917845, Closes: #595922)
 -- Leo Iannacone <l3on at ubuntu.com>   Tue, 31 Jan 2012 15:38:41 +0100

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

-- 
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 Released
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