X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Ffindlib%2Ffind.c;h=d089b703a8cbe990048f2e18b7d2a2999bba4006;hb=4d2f1c844510c9abb9ecf6f0283437862c4a3bfb;hp=ac9e4ceebe6ad38f69dca9e7061c229375f3f644;hpb=0972c30c01d4fd9f64ece7e07fc0dd554bac5bb6;p=bacula%2Fbacula diff --git a/bacula/src/findlib/find.c b/bacula/src/findlib/find.c index ac9e4ceebe..d089b703a8 100644 --- a/bacula/src/findlib/find.c +++ b/bacula/src/findlib/find.c @@ -67,13 +67,13 @@ FF_PKT *init_find_files() /* Get system path and filename maximum lengths */ path_max = pathconf(".", _PC_PATH_MAX); - if (path_max < 1024) { - path_max = 1024; + if (path_max < 2048) { + path_max = 2048; } name_max = pathconf(".", _PC_NAME_MAX); - if (name_max < 1024) { - name_max = 1024; + if (name_max < 2048) { + name_max = 2048; } path_max++; /* add for EOS */ name_max++; /* add for EOS */ @@ -274,11 +274,12 @@ static bool accept_file(FF_PKT *ff) basename = ff->fname; } + ff->ignoredir = incexe->ignoredir; + for (j = 0; j < incexe->opts_list.size(); j++) { findFOPTS *fo = (findFOPTS *)incexe->opts_list.get(j); ff->flags = fo->flags; ff->GZIP_level = fo->GZIP_level; - ff->ignoredir = fo->ignoredir; ff->fstypes = fo->fstype; ff->drivetypes = fo->drivetype;