diff options
author | Julian Andres Klode <jak@debian.org> | 2015-08-19 09:50:19 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-08-19 09:55:21 +0200 |
commit | defe3231c7bafc4d789219a3250be9ccfbc51914 (patch) | |
tree | efdef6d37689b45ce3e6859a309ba42ec98fbd21 /apt-pkg/sourcelist.cc | |
parent | a8275acf87cf15992e6b89694d6276e0a5e529b9 (diff) |
Support tabs in sources.list files
Also support vertical tabs, as isspace() does the same.
Closes: #796067
Diffstat (limited to 'apt-pkg/sourcelist.cc')
-rw-r--r-- | apt-pkg/sourcelist.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc index 3e714667c..d3bcbce5f 100644 --- a/apt-pkg/sourcelist.cc +++ b/apt-pkg/sourcelist.cc @@ -384,7 +384,7 @@ bool pkgSourceList::ParseFileOldStyle(std::string const &File) continue; // Grok it - std::string const LineType = Buffer.substr(0, Buffer.find(' ')); + std::string const LineType = Buffer.substr(0, Buffer.find_first_of(" \t\v")); if (LineType.empty() || LineType == Buffer) return _error->Error(_("Malformed line %u in source list %s (type)"),CurLine,File.c_str()); |