Subject: pkg/24803: mail/postfix-current overwrites /usr/lib/sendmail on Solaris
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/17/2004 01:51:34
>Number:         24803
>Category:       pkg
>Synopsis:       mail/postfix-current overwrites /usr/lib/sendmail on Solaris
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 16 14:52:00 UTC 2004
>Originator:     grant beattie
>Release:        SunOS 5.9
System: SunOS u10 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4u
Machine: sparc
when rebooting this box after installing mail/postfix-current, I
noticed in the boot messages that postfix started automagically.
knowing that I enabled it in /etc/rc.conf but that those items don't
start by default on this box, this seemed strange.

as it turned out, /usr/lib/sendmail had been replaced with a symlink
to /usr/pkg/sbin/sendmail, so when /etc/rc2.d/S88sendmail ran, it
actually started postfix.

under no circumstances should a package overwrite a system binary
unless this is made absolutely clear _prior_.
install mail/postfix-current on Solaris. expect that /usr/lib/sendmail
is not blown away and be unpleasantly surprised.
the pkg doesn't explicitly do this, so it must be the default
behaviour of postfix which is utterly broken.