]> git.saurik.com Git - apt.git/commit
ensure Cnf::FindFile doesn't return files below /dev/null
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 19 Jul 2016 16:05:13 +0000 (18:05 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 19 Jul 2016 16:05:13 +0000 (18:05 +0200)
commitbbd8308cc01941e51e2cbcf88168a5560abe6042
tree1f82c7a91ed12c584bc7fa8f91e31397d37d69d5
parent87f99f6fa701d2557811134380c1f232cf07a422
ensure Cnf::FindFile doesn't return files below /dev/null

Very unlikely, but if the parent is /dev/null, the child empty and the
grandchild a value we returned /dev/null/value which doesn't exist, so
hardly a problem, but for best operability we should be consistent in
our work and return /dev/null always.
apt-pkg/contrib/configuration.cc
apt-pkg/contrib/fileutl.cc
apt-pkg/contrib/fileutl.h
test/libapt/configuration_test.cc