Subject: pkg/24803: mail/postfix-current overwrites /usr/lib/sendmail on Solaris
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <grant@NetBSD.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        SunOS 5.9
>Organization:
>Environment:
System: SunOS u10 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4u
Machine: sparc
>Description:
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_.
>How-To-Repeat:
install mail/postfix-current on Solaris. expect that /usr/lib/sendmail
is not blown away and be unpleasantly surprised.
>Fix:
the pkg doesn't explicitly do this, so it must be the default
behaviour of postfix which is utterly broken.
>Release-Note:
>Audit-Trail:
>Unformatted: