]>
Commit | Line | Data |
---|---|---|
0a1c3c2d | 1 | --- LPRng-3.6.21/src/common/checkpc.c Fri Jul 14 14:16:44 2000 |
2 | +++ LPRng-3.6.21/src/common/checkpc.c Fri Jul 14 14:30:13 2000 | |
3 | @@ -314,6 +314,7 @@ | |
4 | return; | |
5 | } | |
6 | while( (d = readdir(dir)) ){ | |
7 | + int skip_check = 0; | |
8 | cf_name = d->d_name; | |
9 | if( safestrcmp( cf_name, "." ) == 0 | |
10 | || safestrcmp( cf_name, ".." ) == 0 ) continue; | |
11 | @@ -341,7 +342,18 @@ | |
12 | continue; | |
13 | } | |
14 | } | |
15 | - Check_file( cf_name, Fix, 0, 0 ); | |
16 | + | |
17 | + /* this happens to work because we have a filter named "filter", | |
18 | + but there *has* to be a better way to actually do this */ | |
19 | + for( names = filter_names; *names; ++names ){ | |
20 | + if( strcmp( cf_name, *names ) == 0 ){ | |
21 | + skip_check = 1; | |
22 | + } | |
23 | + } | |
24 | + | |
25 | + if( !skip_check ){ | |
26 | + Check_file( cf_name, Fix, 0, 0 ); | |
27 | + } | |
28 | } | |
29 | closedir(dir); | |
30 |