Nathan Stratton Treadway <[email protected]> (Mi 30 Okt 2019 22:21:34 CET): > On Wed, Oct 30, 2019 at 21:15:07 +0100, Heiko Schlittermann wrote: > > Here is a working "non-working" complete example: > > > > diskfile "/dev/null" > > > > define script pre-dle { > > } > > > > define dumptype foo { > > compress client # this finds its way to foo1 -> foo2 > > # script pre-dle > > } > > > > define dumptype foo-foo { > > foo > > # script pre-dle > > } > > > > define dumptype foo-foo-foo { > > foo-foo > > # script pre-dle > > } > > > > To be cecked with `amadmin <config> config --no-default > > > And am I correct that what's not working as expected is the SCRIPT > option in the foo-foo-foo definition? > > That is, when you have "script" defined in foo but not foo-foo, the > SCRIPT value inherits as expected down to the dumped foo-foo > definition... but then doesn't get further copied down to the > foo-foo-foo definition along with the other parameters that are copied > successfully down from foo-foo?
If I have it in "foo" only, it is only there and does not propagate.
If I have it in "foo-foo" only, it is only there and does not propagate.
If I have it in "foo-foo-foo" only, it is only there and does not propagate.
If I have it in "foo" and "foo-foo", it is twice in "foo-foo" (one
propagated from "foo"), but doesn't propagate further.
And so on.
I *suspect* common-src/conffile.c, as this seems to be the only *list*
in the config items, and probably it is handled other than the rest of
the copied config.
Unfortunenatly currently I don't have the resources to fix it on my own.
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
signature.asc
Description: PGP signature
