Subject: misc/23162: sdiff/etcupdate problem (reports failed ${EDITOR} pass on merge)
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/15/2003 10:28:33
>Number:         23162
>Category:       misc
>Synopsis:       etcupdate/sdiff report error on applying merge edits
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 15 00:30:00 UTC 2003
>Originator:     George Michaelson
>Release:        NetBSD 1.6ZC
System: NetBSD 1.6ZC NetBSD 1.6ZC (GGMSMALL) #6: Tue Oct 14 16:28:45 EST 2003 i386
Architecture: i386
Machine: i386

	I do installs by (cd /usr/src; ./build -u build;) followed
	by shutdown to single user, and then in / (cd /usr/obj/destdir.i386;
	tar cBpf - . ) | tar --unlink -xBpf -; followed by etcupdate.

	during etcupdate, I attempt to merge files, but every time, when
	I exit the sdiff merge process, I am told edit failed. It does
	this irrespective of ${EDITOR} and its a bit bizarre that its
	exposed to this value: It should use ed as the canonical editor
	not an env set value.

	The prompting after merge is also extremely confusing: no option
	appears to apply, once you've done a merge. The etcupdate script
	needs to recognize a merge was done and give you a:

		x)	do nothing, the merge is ok thanks


	do an upgrade, run etcupdate and attempt to merge a file such
	as /etc/passwd or /etc/inetd.conf.