NetBSD Problem Report #10100

Received: (qmail 8181 invoked from network); 11 May 2000 20:51:44 -0000
Message-Id: <200005112051.e4BKpDR01099@ebola.usanetworks.com>
Date: Thu, 11 May 2000 16:51:13 -0400 (EDT)
From: Andrew Brown <atatat@atatdot.net>
Reply-To: Andrew Brown <atatat@atatdot.net>
To: gnats-bugs@gnats.netbsd.org
Subject: rc.d/sendmail does not like my upgraded system
X-Send-Pr-Version: 3.95

>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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 11 20:52:00 +0000 2000
>Closed-Date:    Fri May 12 01:24:35 +0000 2000
>Last-Modified:  Fri May 12 01:32:07 +0000 2000
>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:

From: "Perry E. Metzger" <perry@piermont.com>
To: Andrew Brown <atatat@atatdot.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/10100: rc.d/sendmail does not like my upgraded system
Date: 11 May 2000 17:33:33 -0400

 Andrew Brown <atatat@atatdot.net> writes:
 > 	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.

 Wouldn't the more obvious fix be to delete your simlink or just hack
 your private copy of the rc script for now?

 .pm

From: Andrew Brown <atatat@atatdot.net>
To: "Perry E. Metzger" <perry@piermont.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/10100: rc.d/sendmail does not like my upgraded system
Date: Thu, 11 May 2000 17:36:36 -0400

 >> 	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.
 >
 >Wouldn't the more obvious fix be to delete your simlink or just hack
 >your private copy of the rc script for now?

 i can easily delete the symlink, yes, but my fingers are rather used
 to typing /etc/sendmail.cf.  besides...in my opinion, the script would
 be more correct to test for the file in the place where it should *now
 be*, rather where it should *no longer be*.

 and i've got a private copy of the sendmail script.  that's where the
 patch came from.  :)

 -- 
 |-----< "CODE WARRIOR" >-----|
 codewarrior@daemon.org             * "ah!  i see you have the internet
 twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
 andrew@crossbar.com       * "information is power -- share the wealth."

From: itojun@iijlab.net
To: Andrew Brown <atatat@atatdot.net>
Cc: "Perry E. Metzger" <perry@piermont.com>, gnats-bugs@gnats.netbsd.org
Subject: Re: bin/10100: rc.d/sendmail does not like my upgraded system
Date: Fri, 12 May 2000 09:52:56 +0900

 >>> 	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.

 	I feel the current code (die if /etc/sendmail.cf exists) is more safe.
 	and makes sense.  With the attached patch, the worst story would be:
 	- you have custom sendmail.cf in /etc, and netbsd-standard sendmail.cf
 	  in /etc/mail
 	- you start rc.d/sendmail, sendmail uses netbsd-standard sendmail.cf,
 	  bounce your emails due to config differences

 sendmail .cf in...
 /etc	/etc/mail	behavior
 ---	---		---
 no	no		who cares, invoke sendmail (and it dies)
 exist	no		obsolete location, die
 no	exist		happy
 exist	exist		misuse can occur, die

 itojun

From: Andrew Brown <atatat@atatdot.net>
To: itojun@iijlab.net
Cc: "Perry E. Metzger" <perry@piermont.com>, gnats-bugs@gnats.netbsd.org,
   netbsd-bugs@netbsd.org
Subject: Re: bin/10100: rc.d/sendmail does not like my upgraded system
Date: Thu, 11 May 2000 21:17:03 -0400

 >	I feel the current code (die if /etc/sendmail.cf exists) is more safe.
 >	and makes sense.  With the attached patch, the worst story would be:
 >	- you have custom sendmail.cf in /etc, and netbsd-standard sendmail.cf
 >	  in /etc/mail
 >	- you start rc.d/sendmail, sendmail uses netbsd-standard sendmail.cf,
 >	  bounce your emails due to config differences
 >
 >sendmail .cf in...
 >/etc	/etc/mail	behavior
 >---	---		---
 >no	no		who cares, invoke sendmail (and it dies)
 >exist	no		obsolete location, die
 >no	exist		happy
 >exist	exist		misuse can occur, die

 um...okay.  i concede your point.  :)

 someone please close the pr, then?

 -- 
 |-----< "CODE WARRIOR" >-----|
 codewarrior@daemon.org             * "ah!  i see you have the internet
 twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
 andrew@crossbar.com       * "information is power -- share the wealth."
State-Changed-From-To: open->closed 
State-Changed-By: itojun 
State-Changed-When: Thu May 11 18:23:52 PDT 2000 
State-Changed-Why:  
current behavior is more safe, submitter gave up
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.