]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/1.34.6/1.34.6-find.patch
ebl Change VersionId from 10 to 11
[bacula/bacula] / bacula / patches / 1.34.6 / 1.34.6-find.patch
1
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.
5
6  Apply to Bacula 1.34.6 with:
7  
8  cd <bacula-source>
9  patch -p0 <1.34.6-find.patch
10  make
11  ...
12
13 Index: src/findlib/find.c
14 ===================================================================
15 RCS file: /cvsroot/bacula/bacula/src/findlib/find.c,v
16 retrieving revision 1.18
17 diff -u -r1.18 find.c
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
20 @@ -160,10 +160,10 @@
21  
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 */
32             }
33 @@ -205,7 +205,6 @@
34     case FT_NOFOLLOW:
35     case FT_NOSTAT:
36     case FT_NOCHG:
37 -   case FT_DIRNOCHG:
38     case FT_ISARCH:
39     case FT_NORECURSE:
40     case FT_NOFSCHG:
41 @@ -222,6 +221,7 @@
42     case FT_RAW:
43     case FT_FIFO:
44     case FT_SPEC:
45 +   case FT_DIRNOCHG:
46        if (accept_file(ff)) {
47          return ff->callback(ff, hpkt);
48        } else {