]> git.saurik.com Git - apt.git/commit
fail instead of segfault on unreadable config files
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 20 May 2016 07:37:24 +0000 (09:37 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 20 May 2016 17:48:33 +0000 (19:48 +0200)
commitcde5b485c9cdf0bfd5b6ea8e4973abe378270e60
tree7b6de7936e1fe5a1f05aa012a6dac475f4a40ef3
parent235347e50c61be5e1813c1a3bbcdd98e61ae57a7
fail instead of segfault on unreadable config files

The report mentions "apt list --upgradable", but there are others which
have inconsistent behavior ranging from segfaulting to doing something
with the partial (and hence incomplete) data. We had a recent report
about sources.list (#818628), this one mentions prefences, the obvious
next step is conf files… so the testcase is adapted to check for all
three in file and directory versions and run a bunch of commands each
time which should all have more or less the same behavior in such a case
(aka error out).

Closes: 824503
(cherry picked from commit fdf9eef4d96a18d0167708499c993e1174251e88)
apt-pkg/cachefile.cc
apt-pkg/policy.cc
apt-private/private-cacheset.cc
apt-private/private-depends.cc
apt-private/private-list.cc
apt-private/private-show.cc
cmdline/apt-mark.cc
test/integration/test-bug-818628-unreadable-source