apt-cdrom -n replaces /dev/null with a regular file
Bug #612666 reported by
Colin Watson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apt
With apt 0.7.26~
sudo apt-cdrom -d /mnt -m -n -o Debug::
/dev/null will be replaced by a regular file.
This is the fault of this code in apt-pkg/
if (_config-
TargetF = "/dev/null";
FileFd Target(
Don't we need something more like WriteExists in the case of /dev/null?
Related branches
lp:~mvo/apt/mvo
- Ubuntu Core Development Team: Pending requested
-
Diff: 443 lines (+76/-48)14 files modifiedapt-pkg/contrib/fileutl.cc (+10/-5)
doc/po/fr.po (+54/-32)
test/integration/framework (+1/-0)
test/integration/run-tests (+1/-1)
test/integration/test-autoremove (+1/-1)
test/integration/test-bug-590438-broken-provides-thanks-to-remove-order (+1/-1)
test/integration/test-bug-591882-conkeror (+1/-1)
test/integration/test-bug-595691-empty-and-broken-archive-files (+1/-1)
test/integration/test-bug-598669-install-postfix-gets-exim-heavy (+1/-1)
test/integration/test-compressed-indexes (+1/-1)
test/integration/test-disappearing-packages (+1/-1)
test/integration/test-pdiff-usage (+1/-1)
test/integration/test-policy-pinning (+1/-1)
test/integration/test-ubuntu-bug-614993 (+1/-1)
- Ubuntu Core Development Team: Pending requested
-
Diff: 73066 lines (+13639/-12297) (has conflicts)76 files modifiedapt-pkg/contrib/fileutl.cc (+26/-2)
apt-pkg/contrib/strutl.cc (+2/-2)
apt-pkg/deb/debindexfile.cc (+13/-9)
apt-pkg/deb/deblistparser.cc (+6/-0)
apt-pkg/deb/debsystem.cc (+2/-2)
apt-pkg/depcache.cc (+15/-1)
apt-pkg/packagemanager.cc (+3/-3)
apt-pkg/pkgcache.cc (+1/-0)
apt-pkg/pkgcache.h (+1/-1)
apt-pkg/policy.cc (+5/-4)
buildlib/debiandoc.mak (+2/-2)
buildlib/po4a_manpage.mak (+1/-1)
cmdline/apt-get.cc (+12/-0)
debian/apt.cron.daily (+15/-28)
debian/changelog (+158/-0)
debian/control (+1/-1)
doc/examples/configure-index (+1/-0)
doc/po/de.po (+292/-590)
doc/po/fr.po (+8/-4)
po/apt-all.pot (+278/-266)
po/ar.po (+278/-266)
po/ast.po (+299/-287)
po/bg.po (+278/-266)
po/bs.po (+278/-266)
po/ca.po (+375/-241)
po/cs.po (+278/-266)
po/cy.po (+278/-266)
po/da.po (+405/-226)
po/de.po (+350/-247)
po/dz.po (+278/-266)
po/el.po (+278/-266)
po/es.po (+278/-266)
po/eu.po (+278/-266)
po/fi.po (+278/-266)
po/fr.po (+278/-268)
po/gl.po (+278/-266)
po/he.po (+2/-2)
po/hu.po (+278/-266)
po/it.po (+284/-272)
po/ja.po (+278/-266)
po/km.po (+278/-266)
po/ko.po (+278/-266)
po/ku.po (+278/-266)
po/lt.po (+278/-266)
po/mr.po (+278/-266)
po/nb.po (+377/-236)
po/ne.po (+278/-266)
po/nl.po (+280/-268)
po/nn.po (+278/-266)
po/pl.po (+278/-266)
po/pt.po (+279/-267)
po/pt_BR.po (+278/-266)
po/ro.po (+278/-266)
po/ru.po (+279/-267)
po/sk.po (+278/-266)
po/sl.po (+278/-266)
po/sv.po (+278/-266)
po/th.po (+278/-266)
po/tl.po (+278/-266)
po/uk.po (+278/-266)
po/vi.po (+543/-535)
po/zh_CN.po (+278/-273)
po/zh_TW.po (+278/-266)
test/integration/Packages-policy-pinning (+12/-0)
test/integration/framework (+2/-1)
test/integration/run-tests (+1/-1)
test/integration/test-autoremove (+1/-1)
test/integration/test-bug-590438-broken-provides-thanks-to-remove-order (+1/-1)
test/integration/test-bug-591882-conkeror (+5/-5)
test/integration/test-bug-595691-empty-and-broken-archive-files (+91/-0)
test/integration/test-bug-598669-install-postfix-gets-exim-heavy (+22/-0)
test/integration/test-compressed-indexes (+1/-1)
test/integration/test-disappearing-packages (+1/-1)
test/integration/test-pdiff-usage (+1/-1)
test/integration/test-policy-pinning (+228/-0)
test/integration/test-ubuntu-bug-614993 (+62/-0)
lp:~mvo/apt/debian-sid
(Merged)
Changed in apt (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
milestone: | none → ubuntu-10.10 |
status: | Triaged → In Progress |
To post a comment you must log in.
This bug was fixed in the package apt - 0.8.3ubuntu1
---------------
apt (0.8.3ubuntu1) maverick; urgency=low
* merged fixes from debian-sid
* debian/rules:
- put ubuntu-archive.gpg back into the package (LP: #620576)
* apt-pkg/init.cc:
- ignore ".distUpgrade" and ".save" files in sources.list.d
(LP: #631770)
apt (0.8.3) unstable; urgency=low
[ Manpages translations ]
* Japanese (KURASAWA Nozomu). Closes: #595862
[ Michael Vogt ] indexcopy. cc:
* apt-pkg/
- only use trusted.gpg.d directory if it exists
- do not replace /dev/null when running in APT::CDROM::NoAct
mode (LP: #612666), thanks to Colin Watson
[ David Kalnischkies ] apt-ftparchive. cc:
* ftparchive/
- ensure that BinDirectory as well as Tree settings get
the correct default FileMode setting (Closes: #595922)
apt (0.8.2) unstable; urgency=low
[ Manpages translations ]
* Spanish (Omar Campagne). Closes: #595557
[ David Kalnischkies ] versionmatch. cc: deb/dpkgpm. cc: indexcopy. cc: :TrustedKeyring setting, {gzip,bzip2} .cc:
* apt-pkg/
- do not accept 'Pin: origin "' (missing closing ") as a valid
way to pin a local archive: either "" or none…
* apt-pkg/
- create Dir::Log if needed to support /var/log as tmpfs or similar,
inspired by Thomas Bechtold, thanks! (Closes: #523919, LP: #220239)
* apt-pkg/
- support really still the APT::GPGV:
as it breaks d-i badly otherwise (Closes: #595428)
* cmdline/apt-key:
- support also Dir::Etc::Trusted so that apt-key works in the same
way as the library part which works with the trusted files
* methods/
- empty files can never be valid archives (Closes: #595691)
apt (0.8.1) unstable; urgency=low
[ Programs translations ]
* Thai (Theppitak Karoonboonyanan). Closes: #592695
* Russian (Yuri Kozlov). Closes: #594232
* Slovak (Ivan Masár). Closes: #594255
* Swedish (Daniel Nylander). Closes: #594241
* Japanese (Kenshi Muto, Osamu Aoki). Closes: #594265
* Italian (Milo Casagrande). Closes: #594238
* Asturian (maacub). Closes: #594303
* Simplified Chinese (Aron Xu). Closes: #594458
* Bulgarian (Damyan Ivanov). Closes: #594627
* Portuguese (Miguel Figueiredo). Closes: #594668
* Korean (Changwoo Ryu). Closes: #594809
* Norwegian Bokmål (Hans Nordhaug). Closes: #595182
* Danish (Joe Hansen). Closes: #595176
* Catalan (Agustí Grau). Closes: #595234
[ Christian Perrier ]
* Fix spelling error in cmdline/apt-get.cc. Thanks to Osamu Aoki
Closes: #594211
[ Manpages translations ]
* Portuguese (Américo Monteiro)
[ David Kalnischkies ] apt-cache. cc: depcache. cc: contrib/ fileutl. cc:
* cmdline/
- show in madison command again also source packages (LP: #614589)
- remove useless GetInitialize method
* cmdline/apt-get.cc:
- remove direct calls of ReadMainList and use the wrapper instead
to protect us from useless re-reads and two-times notice display
- remove death code by removing unused GetInitialize
* apt-pkg/
- now that apt-get purge works on 'rc' packages let the MarkDelete
pass this purge forward to the non-pseudo package for pseudos
* apt-pkg/
- apply SilentlyIgnore...