src/filed/job.c
int add_wild_to_fileset(JCR *jcr, const char *item, int type)
{
   findFOPTS *current_opts = start_options(jcr->ff);

   if (type == ' ') {
      current_opts->wild.append(bstrdup(item));
   } else if (type == 'D') {
      current_opts->wilddir.append(bstrdup(item));
   } else if (type == 'F') {
      current_opts->wildfile.append(bstrdup(item));
   } else if (type == 'B') {
      current_opts->wildbase.append(bstrdup(item));
   } else {
      return state_error;
   }
   return state_options;
}
/**
 * Add a wild card to the current fileset
 */
Add a wild card to the current fileset
Add a wild card to the current fileset
int add_wild_to_fileset(JCR *jcr, const char *item, int type)
{
   findFOPTS *current_opts = start_options(jcr->ff);
   if (type == ' ') {
      current_opts->wild.append(bstrdup(item));
   } else if (type == 'D') {
      current_opts->wilddir.append(bstrdup(item));
   } else if (type == 'F') {
      current_opts->wildfile.append(bstrdup(item));
   } else if (type == 'B') {
      current_opts->wildbase.append(bstrdup(item));
   } else {
      return state_error;
   }
   return state_options;
}
int add_wild_to_fileset ( JCR * jcr , const char * item , int type ) { findFOPTS * current_opts = start_options ( jcr -> ff ) ; if ( type == ' ' ) { current_opts -> wild . append ( bstrdup ( item ) ) ; } else if ( type == ' ' ) { current_opts -> wilddir . append ( bstrdup ( item ) ) ; } else if ( type == ' ' ) { current_opts -> wildfile . append ( bstrdup ( item ) ) ; } else if ( type == ' ' ) { current_opts -> wildbase . append ( bstrdup ( item ) ) ; } else { return state_error ; } return state_options ; }
Add a wild card to the current fileset
Add a wild card to the current fileset