1 --- fontconfig-2.2.98/src/fcdir.c.orig 2004-12-06 20:25:19.000000000 +0100
2 +++ fontconfig-2.2.98/src/fcdir.c 2005-01-22 21:26:06.141980024 +0100
4 return FcFileScanConfig (set, dirs, cache, blanks, file, force, 0);
8 +FcBlackListed (const char *name)
10 + static const char * const black_listed_names[] = {
25 + int high = sizeof(black_listed_names) / sizeof(black_listed_names[0]) - 1;
27 + while (low <= high) {
28 + int mid = (low + high) / 2;
29 + int res = strcmp (name, black_listed_names[mid]);
42 * Scan 'dir', adding font files to 'set' and
43 * subdirectories to 'dirs'
46 while (ret && (e = readdir (d)))
48 - if (e->d_name[0] != '.' && strlen (e->d_name) < FC_MAX_FILE_LEN)
49 + if (e->d_name[0] != '.' && strlen (e->d_name) < FC_MAX_FILE_LEN &&
50 + !FcBlackListed (e->d_name))
52 strcpy ((char *) base, (char *) e->d_name);
53 ret = FcFileScanConfig (set, dirs, cache, blanks, file, force, config);