From: David Kalnischkies Date: Tue, 3 Dec 2013 19:53:04 +0000 (+0100) Subject: allow ':' in GetListOfFilesInDir X-Git-Tag: 0.9.14.3.exp1~3^2~1 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/9d39208af5c8c72d3886c70d603921cf427056ee?hp=5e1ed0889d8aac82ca18add8c6139b153225ae71 allow ':' in GetListOfFilesInDir run-parts doesn't allow this char in valid filenames, but we tend to have files with this character in e.g. /var/lib/apt/lists/ Git-Dch: Ignore --- diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 7fbe4d604..130e990c3 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -465,7 +465,7 @@ std::vector GetListOfFilesInDir(string const &Dir, std::vector c const char *C = Ent->d_name; for (; *C != 0; ++C) if (isalpha(*C) == 0 && isdigit(*C) == 0 - && *C != '_' && *C != '-') { + && *C != '_' && *C != '-' && *C != ':') { // no required extension -> dot is a bad character if (*C == '.' && Ext.empty() == false) continue;