2 This patch fixes a problem where the Options are not properly passed
3 from the last Option group to the NULL option group -- i.e. some of
4 the files do not get the correct options.
6 Apply to Bacula 1.34.6 with:
9 patch -p0 <1.34.6-find.patch
13 Index: src/findlib/find.c
14 ===================================================================
15 RCS file: /cvsroot/bacula/bacula/src/findlib/find.c,v
16 retrieving revision 1.18
18 --- src/findlib/find.c 9 Jun 2004 11:52:24 -0000 1.18
19 +++ src/findlib/find.c 6 Aug 2004 13:25:52 -0000
22 for (j=0; j<incexe->opts_list.size(); j++) {
23 findFOPTS *fo = (findFOPTS *)incexe->opts_list.get(j);
24 + ff->flags = fo->flags;
25 + ff->GZIP_level = fo->GZIP_level;
26 for (k=0; k<fo->wild.size(); k++) {
27 if (fnmatch((char *)fo->wild.get(k), ff->fname, 0) == 0) {
28 - ff->flags = fo->flags;
29 - ff->GZIP_level = fo->GZIP_level;
30 if (ff->flags & FO_EXCLUDE) {
31 return false; /* reject file */
46 if (accept_file(ff)) {
47 return ff->callback(ff, hpkt);