Fix FindFile (and FindDir) so that the value of RootDir is applied to the default...
authorDaniel Burrows <Daniel_Burrows@alumni.brown.edu>
Fri, 6 Mar 2009 16:22:53 +0000 (08:22 -0800)
committerDaniel Burrows <Daniel_Burrows@alumni.brown.edu>
Fri, 6 Mar 2009 16:22:53 +0000 (08:22 -0800)
commit17b3813cfad54b0ef14e70ad71e2d3ba49abfafe
tree81666c1f469fc4bf0fdcca4ea66411c34ea6a03a
parent1ba20bc48f7e4e109682f5be7b3d6343af0eeb93
Fix FindFile (and FindDir) so that the value of RootDir is applied to the default if no value is found.
Previously FindFile("Dir::etc", "/etc") would use RootDir if a value
existed for "Dir::etc"; otherwise it would go ahead and use "/etc",
ignoring RootDir.  Of course, this made RootDir fairly useless; it
has now been fixed.
apt-pkg/contrib/configuration.cc