allow '-' in filenames, too
authoraland <aland>
Mon, 2 Jul 2007 21:48:21 +0000 (21:48 +0000)
committeraland <aland>
Mon, 2 Jul 2007 21:48:21 +0000 (21:48 +0000)
src/main/conffile.c

index e682a8f..ea3e340 100644 (file)
@@ -1201,6 +1201,7 @@ static int cf_section_read(const char *filename, int *lineno, FILE *fp,
                                        for (p = dp->d_name; *p != '\0'; p++) {
                                                if (isalpha((int)*p) ||
                                                    isdigit((int)*p) ||
+                                                   (*p == '-') ||
                                                    (*p == '_') ||
                                                    (*p == '.')) continue;
                                                break;