summaryrefslogtreecommitdiff
path: root/apt-pkg/sourcelist.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-11-29 14:27:25 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-29 14:32:29 +0100
commit3dd64b9c53b63ed82e59971614ec1dc242621d9b (patch)
tree4660473ced46be28b901f416902d26dff585afa2 /apt-pkg/sourcelist.cc
parent3d284148090b6349c216407bb2766bd8f6a962f0 (diff)
accept ../ on the cmdline as start for a deb file as well
Regression of 14341a7ee1ca3dbcdcdbe10ad19b947ce23d972d. Reported-By: Julian Andres Klode <jak@debian.org>
Diffstat (limited to 'apt-pkg/sourcelist.cc')
-rw-r--r--apt-pkg/sourcelist.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc
index 56df976e8..1e6b831be 100644
--- a/apt-pkg/sourcelist.cc
+++ b/apt-pkg/sourcelist.cc
@@ -558,7 +558,7 @@ bool pkgSourceList::AddVolatileFile(std::string const &File) /*{{{*/
void pkgSourceList::AddVolatileFiles(CommandLine &CmdL, std::vector<const char*> * const VolatileCmdL)/*{{{*/
{
std::remove_if(CmdL.FileList + 1, CmdL.FileList + 1 + CmdL.FileSize(), [&](char const * const I) {
- if (I != nullptr && (I[0] == '/' || (I[0] == '.' && I[1] == '/')))
+ if (I != nullptr && (I[0] == '/' || (I[0] == '.' && ((I[1] == '.' && I[2] == '/') || I[1] == '/'))))
{
if (AddVolatileFile(I))
{