Subject: Re: misc/10243: rc.d/sendmail should not exit if [ -f /etc/sendmail.cf
To: Simon Burge <simonb@netbsd.org>
From: David Brownlee <abs@netbsd.org>
List: netbsd-bugs
Date: 06/01/2000 09:43:18
Another rc.conf variable to avoid the warning would also work,
similar to no_swap, though naming would be an issue:
'sendmail_no_warn_about_etc_sendmail_cf'
David/absolute
-- www.netbsd.org: No hype required --
On Thu, 1 Jun 2000, Simon Burge wrote:
> Keith Moore wrote:
>
> > yeah, if you maintain sendmail on a large number of platforms
> > it's a royal pain in the wazoo to have to put sendmail.cf in
> > a different place on each one. but at least that problem can
> > be solved with symlinks in a way works on every platform.
> >
> > now with netbsd you not only have to put the symlinks in
> > to get behavior consistent with other platforms,
> > you have to go and edit some obscure file.
> > worse yet, you have to *know* that you need to do this.
>
> Would something like the following be workable?
>
> if checkyesno sendmail && [ -f "/etc/${name}.cf" ]; then
> cmp -s "/etc/mail/${name}.cf" "/etc/${name}.cf" && \
> err 1 "the two are different!?"
> fi
>
> That way if you have a symlink either way the file contents will
> be same and the system will keep quiet about it. Sound ok?
>
> Simon.
>