Subject: bin/14410: make release without DESTDIR set hoses /etc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dive@endersgame.net>
List: netbsd-bugs
Date: 10/31/2001 00:50:23
>Number:         14410
>Category:       bin
>Synopsis:       make release without DESTDIR set hoses /etc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 30 16:51:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     dive-o
>Release:        NetBSD 1.5Y
>Organization:
/~\ The ASCII                       Sean Davis
\ / Ribbon Campaign                 aka dive-o
 X  Against HTML
/ \ Email!                      dive@endersgame.net
>Environment:
System: NetBSD eros.endersgame.net 1.5Y NetBSD 1.5Y (EROS) #168: Tue Oct 30 17:39:09 EST 2001 dive@eros.endersgame.net:/cvs/netbsd/src/sys/arch/i386/compile/EROS i386
Architecture: i386
Machine: i386
>Description:
	If one forgets to set DESTDIR, and runs make release (make snapshot),
most files in /etc will be overwritten with stock copies. It's a
user error type problem, only happened to me once, but it was a royal PITA
to recover from. (had to restore the passwords from /var/backups, and redo
-many- config files)
>How-To-Repeat:
	make release without DESTDIR set
>Fix:
	could a warning be added? so that if you try to make release and
don't have DESTDIR set, it'll yell at you?
and perhaps an option so that if you really want it to kill /etc, it'll do
it the way it does now.

>Release-Note:
>Audit-Trail:
>Unformatted:
 	kernel as of 20011030, userland as of 20011028