allow ':' in GetListOfFilesInDir
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 3 Dec 2013 19:53:04 +0000 (20:53 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 13 Dec 2013 10:59:44 +0000 (11:59 +0100)
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

apt-pkg/contrib/fileutl.cc

index 7fbe4d6..130e990 100644 (file)
@@ -465,7 +465,7 @@ std::vector<string> GetListOfFilesInDir(string const &Dir, std::vector<string> 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;