src/findlib/match.c
static int
file_in_excluded_list(struct s_excluded_file *exc, const char *file)
{
   if (exc == NULL) {
      Dmsg0(900, "exc is NULL\n");
   }
   for ( ; exc; exc=exc->next ) {
      if (fnmatch(exc->fname, file, fnmode|FNM_PATHNAME) == 0) {
         Dmsg2(900, "Match exc pat=%s: file=%s:\n", exc->fname, file);
         return 1;
      }
      Dmsg2(900, "No match exc pat=%s: file=%s:\n", exc->fname, file);
   }
   return 0;
}
/*
 * This is the workhorse of excluded_file().
 * Determine if the file is excluded or not.
 */
This is the workhorse of excluded_file().
Determine if the file is excluded or not.
This is the workhorse of excluded_file () . Determine if the file is excluded or not .
static int
file_in_excluded_list(struct s_excluded_file *exc, const char *file)
{
   if (exc == NULL) {
      Dmsg0(900, "exc is NULL\n");
   }
   for ( ; exc; exc=exc->next ) {
      if (fnmatch(exc->fname, file, fnmode|FNM_PATHNAME) == 0) {
         Dmsg2(900, "Match exc pat=%s: file=%s:\n", exc->fname, file);
         return 1;
      }
      Dmsg2(900, "No match exc pat=%s: file=%s:\n", exc->fname, file);
   }
   return 0;
}
static int file_in_excluded_list ( struct s_excluded_file * exc , const char * file ) { if ( exc == NULL ) { Dmsg0 ( 900 , " \n " ) ; } for ( ; exc ; exc = exc -> next ) { if ( fnmatch ( exc -> fname , file , fnmode | FNM_PATHNAME ) == 0 ) { Dmsg2 ( 900 , " \n " , exc -> fname , file ) ; return 1 ; } Dmsg2 ( 900 , " \n " , exc -> fname , file ) ; } return 0 ; }
This is the workhorse of excluded_file().
This is the workhorse of excluded_file () .