]> git.sur5r.net Git - bacula/bacula/commit
Force the re-initialization of BaseJobOpts, AccurateOpts and VerifyOpts between two...
authorEric Bollengier <eric@baculasystems.com>
Sat, 10 Mar 2012 09:25:15 +0000 (10:25 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:33 +0000 (14:50 +0200)
commit2d15744f322c3dfad8aa8938f2c7bd74374157be
tree7817f83f7da5026bf584abde55d939f5cd46eee3
parentebadc0985391cd89bf51144a2bf977082d51d821
Force the re-initialization of BaseJobOpts, AccurateOpts and VerifyOpts between two Include{}

When using this configuration

FileSet {
 Name = X
 Include {
   Options { Accurate = A }
   File = /tmp
 }

 Include {
   Options { Compression = GZIP1 }
   File = /elsewhere
 }
}

The second Include {} block is using the Accurate=A option from the first Include{}. With this
fix, the Accurate/BaseJob/Verify options are set to default between two Include{}.

We still have the same kind of problem for the "flags" that contains most options.
Something like the following configuration won't work as expected:

FileSet {
 Name = X
 Include {
   Options { Portable = no }
   File = /tmp
 }

 Include {
   Options { Portable = yes }
   File = /elsewhere
 }
}
bacula/src/findlib/find.c