apt-ftparchive sets permission of Packages file to 001 to
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned |
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://
[Stable Fix]
Cherry-picked the upstream patch - http://
[Text Case]
(lucid-
(lucid-
(lucid-
(lucid-
(lucid-
(lucid-
[...]
(lucid-
Broken result: ---------x 1 root root 0 Feb 29 09:37 dists/sid/
Fixed result: -rw-r--r-- 1 root root 0 Feb 29 11:11 dists/sid/
[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/
chmod("
chmod("
chmod("
E: Could not open file ./dists/
E: Error processing contents dists/lucid/
Related branches
- Evan Broder (community): Approve
-
Diff: 30173 lines (+5376/-4517)76 files modifiedapt-inst/deb/debfile.cc (+7/-1)
apt-pkg/acquire-item.cc (+10/-6)
apt-pkg/deb/deblistparser.cc (+23/-1)
apt-pkg/deb/debrecords.cc (+2/-1)
apt-pkg/deb/debsrcrecords.cc (+2/-1)
apt-pkg/deb/dpkgpm.cc (+6/-0)
apt-pkg/indexfile.cc (+2/-0)
cmdline/apt-key (+22/-5)
configure (+1/-1)
configure.in (+1/-1)
debian/apt.cron.daily (+7/-0)
debian/apt.postinst (+13/-2)
debian/changelog (+120/-0)
debian/control (+2/-2)
debian/patches/ftparchive-fix-filemode-settings.patch (+49/-0)
debian/patches/series (+1/-0)
doc/apt-ftparchive.1.xml (+30/-5)
doc/de/apt-ftparchive.de.1 (+24/-5)
doc/po/apt-doc.pot (+136/-99)
doc/po/de.po (+160/-101)
doc/po/es.po (+139/-99)
doc/po/fr.po (+160/-101)
doc/po/it.po (+137/-99)
doc/po/ja.po (+152/-100)
doc/po/pl.po (+139/-99)
doc/po/pt_BR.po (+139/-99)
ftparchive/apt-ftparchive.cc (+56/-14)
ftparchive/contents.cc (+5/-1)
ftparchive/multicompress.cc (+1/-0)
ftparchive/writer.cc (+87/-37)
ftparchive/writer.h (+24/-3)
methods/https.cc (+2/-4)
po/apt-all.pot (+83/-82)
po/ar.po (+84/-82)
po/ast.po (+84/-82)
po/bg.po (+84/-82)
po/bs.po (+84/-82)
po/ca.po (+84/-82)
po/cs.po (+84/-82)
po/cy.po (+84/-82)
po/da.po (+84/-82)
po/de.po (+84/-82)
po/dz.po (+84/-82)
po/el.po (+84/-82)
po/en_GB.po (+106/-104)
po/es.po (+84/-82)
po/eu.po (+84/-82)
po/fi.po (+84/-82)
po/fr.po (+84/-82)
po/gl.po (+84/-82)
po/hu.po (+84/-82)
po/it.po (+84/-82)
po/ja.po (+84/-82)
po/km.po (+84/-82)
po/ko.po (+84/-82)
po/ku.po (+84/-82)
po/lt.po (+84/-82)
po/mr.po (+84/-82)
po/nb.po (+84/-82)
po/ne.po (+84/-82)
po/nl.po (+84/-82)
po/nn.po (+84/-82)
po/pl.po (+84/-82)
po/pt.po (+84/-82)
po/pt_BR.po (+84/-82)
po/ro.po (+84/-82)
po/ru.po (+84/-82)
po/sk.po (+84/-82)
po/sl.po (+84/-82)
po/sv.po (+84/-82)
po/th.po (+84/-82)
po/tl.po (+84/-82)
po/uk.po (+84/-82)
po/vi.po (+84/-82)
po/zh_CN.po (+84/-82)
po/zh_TW.po (+84/-82)
Changed in apt (Debian): | |
status: | Unknown → Fix Released |
Changed in apt (Ubuntu): | |
assignee: | nobody → Leo Iannacone (l3on) |
description: | updated |
Changed in apt (Ubuntu): | |
status: | New → Triaged |
tags: |
added: verification-done removed: verification-needed |
All versions past lucid are not affected by this bug. And it was certainly not introduced by 0.7.25.3ubuntu9.9; maybe 0.7.25.3ubuntu9.8, though.