From 0a1c3c2d78cc096e8dd17fc82c6a44dc751ded60 Mon Sep 17 00:00:00 2001 From: kloczek Date: Fri, 21 Jul 2000 15:07:32 +0000 Subject: [PATCH] - patch checkpc to not complain when filter is executable and in the spool directory (patch from rawhide). Changed files: LPRng-filter.patch -> 1.1 --- LPRng-filter.patch | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 LPRng-filter.patch diff --git a/LPRng-filter.patch b/LPRng-filter.patch new file mode 100644 index 0000000..2d9ffe5 --- /dev/null +++ b/LPRng-filter.patch @@ -0,0 +1,30 @@ +--- LPRng-3.6.21/src/common/checkpc.c Fri Jul 14 14:16:44 2000 ++++ LPRng-3.6.21/src/common/checkpc.c Fri Jul 14 14:30:13 2000 +@@ -314,6 +314,7 @@ + return; + } + while( (d = readdir(dir)) ){ ++ int skip_check = 0; + cf_name = d->d_name; + if( safestrcmp( cf_name, "." ) == 0 + || safestrcmp( cf_name, ".." ) == 0 ) continue; +@@ -341,7 +342,18 @@ + continue; + } + } +- Check_file( cf_name, Fix, 0, 0 ); ++ ++ /* this happens to work because we have a filter named "filter", ++ but there *has* to be a better way to actually do this */ ++ for( names = filter_names; *names; ++names ){ ++ if( strcmp( cf_name, *names ) == 0 ){ ++ skip_check = 1; ++ } ++ } ++ ++ if( !skip_check ){ ++ Check_file( cf_name, Fix, 0, 0 ); ++ } + } + closedir(dir); + -- 2.44.0