src/findlib/match.c
int file_is_excluded(FF_PKT *ff, const char *file)
{
   const char *p;

#if defined(HAVE_WIN32)
   /*
    *  ***NB*** this removes the drive from the exclude
    *  rule.  Why?????
    */
   if (file[1] == ':') {
      file += 2;
   }
#endif

   if (file_in_excluded_list(ff->excluded_paths_list, file)) {
      return 1;
   }

   /* Try each component */
   for (p = file; *p; p++) {
      /* Match from the beginning of a component only */
      if ((p == file || (!IsPathSeparator(*p) && IsPathSeparator(p[-1])))
           && file_in_excluded_list(ff->excluded_files_list, p)) {
         return 1;
      }
   }
   return 0;
}
/*
 * Walk through the excluded lists to see if this
 *  file is excluded, or if it matches a component
 *  of an excluded directory.
 */
Walk through the excluded lists to see if this
file is excluded, or if it matches a component
of an excluded directory.
Walk through the excluded lists to see if this file is excluded or if it matches a component of an excluded directory .
int file_is_excluded(FF_PKT *ff, const char *file)
{
   const char *p;
#if defined(HAVE_WIN32)
   if (file[1] == ':') {
      file += 2;
   }
#endif
   if (file_in_excluded_list(ff->excluded_paths_list, file)) {
      return 1;
   }
   for (p = file; *p; p++) {
      if ((p == file || (!IsPathSeparator(*p) && IsPathSeparator(p[-1])))
           && file_in_excluded_list(ff->excluded_files_list, p)) {
         return 1;
      }
   }
   return 0;
}
int file_is_excluded ( FF_PKT * ff , const char * file ) { const char * p ; #if defined ( HAVE_WIN32 ) if ( file [ 1 ] == ' ' ) { file += 2 ; } #endif if ( file_in_excluded_list ( ff -> excluded_paths_list , file ) ) { return 1 ; } for ( p = file ; * p ; p ++ ) { if ( ( p == file || ( ! IsPathSeparator ( * p ) && IsPathSeparator ( p [ -1 ] ) ) ) && file_in_excluded_list ( ff -> excluded_files_list , p ) ) { return 1 ; } } return 0 ; }
Walk through the excluded lists to see if this
  file is excluded, or if it matches a component
  of an excluded directory.
Walk through the excluded lists to see if this file is excluded or if it matches a component of an excluded directory .
/*
    *  ***NB*** this removes the drive from the exclude
    *  rule.  Why?????
    */ /* Try each component */ /* Match from the beginning of a component only */