Subject: bin/10100: rc.d/sendmail does not like my upgraded system
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 05/11/2000 13:51:13
>Number:         10100
>Category:       bin
>Synopsis:       rc.d/sendmail does not like my upgraded sendmail system
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 11 13:52:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        1.4Y as of 2000/05/09
>Organization:
none
>Environment:
	
System: NetBSD ebola 1.4X NetBSD 1.4X (RESTON) #7: Mon May 8 16:42:28 EDT 2000 andrew@ebola:/usr/src/sys/arch/i386/compile/RESTON i386


>Description:

	i cvs updated very late at night on 5/9, built it all the next
	day, upgraded /etc just before lunch today, and rebooted.  i'm
	already running a *new* sendmail, so i've already got a my local
	sendmail.cf in the /etc/mail directory.  i left a symlink behind
	so that *i* can find it in /etc/sendmail.cf (since i'm long in
	the tooth on that thing).  the new sendmail rc.d script looks for
	this, finds it, yells at me, and doesn't start sendmail.

>How-To-Repeat:

	# cd /etc
	# mkdir mail
	# mv sendmail.cf mail
	# ln -s mail/sendmail.cf
	(update /etc to -current)
	# reboot

>Fix:

--- sendmail-orig	Thu May 11 13:21:56 2000
+++ sendmail	Thu May 11 13:43:58 2000
@@ -19,7 +19,7 @@
 required_files="/etc/mail/${name}.cf"
 
 # die if there's pre-8.10 configuration file
-if [ -f "/etc/${name}.cf" ]; then
+if [ -f "/etc/${name}.cf" -a ! -f "/etc/mail/${name}.cf" ]; then
 	err 1 "${name} was not started, move /etc/${name}.cf to /etc/mail."
 fi
 
>Release-Note:
>Audit-Trail:
>Unformatted: