]> 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)
committerEric Bollengier <eric@baculasystems.com>
Sat, 10 Mar 2012 09:27:57 +0000 (10:27 +0100)
commitee75b2763255870065b567ba7036a1b8246c3e4b
treef7e317724bffafe8e00d8c58157b5205327673bb
parent14f937e10a8dda0aaaea58e2a59322589553f3de
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