Package: sendmail
Version: 8.13.3-6

The update_mk script will overwrite /etc/mail/Makefile even if
HANDS_OFF is set to Yes and thus will make a number of other files
(notably /etc/mail/sendmail.cf) be replaced as well as a side effect
when make is run in /etc/mail.

This is due to a bug in Parse_conf.pm, where read_conf() starts
with (line 150):

  sub read_conf {
        my ($input_file) = @_ || $Parse_conf::Conffile;

update_mk will call read_conf by passing the config file via the
first argument. The expression

  @_ || $Parse_conf::Conffile;

will force @_ to be evaluated in scalar context and therefore returns
"1" (the number of elements in @_) rather than the filename. Therefore,
whenever read_conf() is called with more than zero arguments 
input_file will contain "1" and read_conf will therefore fall back
to some builtin configuration, *not* to the configuration in the
config file.

BTW: Even with HANDS_OFF="Yes" update_mk will remove /etc/mail/Makefile,
which is not exactly what one understands under

  "Do *NOT* touch the configuration"

I *do* want to have /etc/mail/Makefile, but I do *not* want update_mk
to ever touch (or remove) it. I know, this is a pity, since you spend
much effort in order to implement a great number of automagic
configuration things.

Kind regards,
Tom Aeby




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to