Subject: bin/10171: etc/changelist does not work with two sendmail.cf files
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 05/21/2000 21:00:13
>Number:         10171
>Category:       bin
>Synopsis:       etc/changelist does not work with two sendmail.cf files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 21 21:01:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        1.4Y, via cvs update yesterday (or the day before)
>Organization:
none
>Environment:
	
System: NetBSD this 1.4Y NetBSD 1.4Y (THAT) #13: Sun May 21 01:53:53 GMT 2000 root@this:/usr/src/sys/arch/i386/compile/THAT i386


>Description:

	now that sendmail has been upgraded to 8.10.1 and the sendmail
	suite of files has been moved to /etc/mail, changelist was
	updated to track changes in both locations: /etc/sendmail.cf
	and /etc/mail/sendmail.cf, which doesn't work.  i upgrade my
	/etc every week or two, and the first time i got a nightly
	security email that said that /etc/sendmail.cf had disappeared
	and that /etc/mail/sendmail.cf had appeared, i thought it was
	normal.  then i got one the night after that and the night
	after that, and so on and so on.

	/etc/changelist lists both versions so the first one (the one
	in /etc/mail, which does exist) it finds, counts as the file
	being created and the second one (the old /etc location) counts 
	as being deleted (since it's not there).

>How-To-Repeat:

	upgrade to sendmail 8.10.1, move your sendmail.cf to the new
	location, and upgrade your changelist file.

>Fix:

	/etc/changelist (or the security script) might like to be taught
	to deal with files with the same name in different locations,
	but this patch makes my problem go away.

	i also removed /etc/sendmail.cw (and added the 8.10 equivalent)
	since the newer changelist file should really be supporting
	-current systems.

--- -	Sun May 21 23:45:13 2000
+++ changelist	Sun May 21 23:22:03 2000
@@ -5,7 +5,6 @@
 # for modifications.
 
 /etc/Distfile
-/etc/aliases
 /etc/amd/master
 /etc/bootparams
 /etc/bootptab
@@ -54,6 +53,7 @@
 /etc/mail.rc
 /etc/mail/aliases
 /etc/mail/helpfile
+/etc/mail/local-host-names
 /etc/mail/sendmail.cf
 /etc/mail/sendmail-IPv6.cf
 /etc/mailer.conf
@@ -100,8 +100,6 @@
 /etc/rtadvd.conf
 /etc/security
 /etc/security.conf
-/etc/sendmail.cf
-/etc/sendmail.cw
 /etc/services
 /etc/shells
 /etc/slip.hosts
>Release-Note:
>Audit-Trail:
>Unformatted: