]> git.pld-linux.org Git - packages/LPRng.git/commitdiff
- patch checkpc to not complain when filter is executable and in the
authorkloczek <kloczek@pld-linux.org>
Fri, 21 Jul 2000 15:07:32 +0000 (15:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  spool directory (patch from rawhide).

Changed files:
    LPRng-filter.patch -> 1.1

LPRng-filter.patch [new file with mode: 0644]

diff --git a/LPRng-filter.patch b/LPRng-filter.patch
new file mode 100644 (file)
index 0000000..2d9ffe5
--- /dev/null
@@ -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);
This page took 0.066511 seconds and 4 git commands to generate.