src/findlib/mkpath.c
bool path_list_add(JCR *jcr, uint32_t len, char *fname)
{
   bool ret = true;
   CurDir *item;

   if (!jcr->path_list) {
      path_list_init(jcr);
   }

   /* we store CurDir, fname in the same chunk */
   item = (CurDir *)jcr->path_list->hash_malloc(sizeof(CurDir)+len+1);

   memset(item, 0, sizeof(CurDir));
   memcpy(item->fname, fname, len+1);

   jcr->path_list->insert(item->fname, item);

   Dmsg1(dbglvl, "add fname=<%s>\n", fname);
   return ret;
}
/* Add a path to the hash when we create a directory
 * with the replace=NEVER option
 */
Add a path to the hash when we create a directory
with the replace=NEVER option
Add a path to the hash when we create a directory with the replace = NEVER option
bool path_list_add(JCR *jcr, uint32_t len, char *fname)
{
   bool ret = true;
   CurDir *item;
   if (!jcr->path_list) {
      path_list_init(jcr);
   }
   item = (CurDir *)jcr->path_list->hash_malloc(sizeof(CurDir)+len+1);
   memset(item, 0, sizeof(CurDir));
   memcpy(item->fname, fname, len+1);
   jcr->path_list->insert(item->fname, item);
   Dmsg1(dbglvl, "add fname=<%s>\n", fname);
   return ret;
}
bool path_list_add ( JCR * jcr , uint32_t len , char * fname ) { bool ret = true ; CurDir * item ; if ( ! jcr -> path_list ) { path_list_init ( jcr ) ; } item = ( CurDir * ) jcr -> path_list -> hash_malloc ( sizeof ( CurDir ) + len + 1 ) ; memset ( item , 0 , sizeof ( CurDir ) ) ; memcpy ( item -> fname , fname , len + 1 ) ; jcr -> path_list -> insert ( item -> fname , item ) ; Dmsg1 ( dbglvl , " \n " , fname ) ; return ret ; }
Add a path to the hash when we create a directory
 with the replace=NEVER option
Add a path to the hash when we create a directory with the replace = NEVER option
/* we store CurDir, fname in the same chunk */