Subject: install/6672: NetBSD.dist does the wrong thing for /var/msgs
To: None <gnats-bugs@gnats.netbsd.org>
From: Eric S. Hvozda <hvozda@ra.ack.org>
List: netbsd-bugs
Date: 12/28/1998 18:18:34
>Number:         6672
>Category:       install
>Synopsis:       The owner of /var/msgs is wrong
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 28 15:35:00 1998
>Last-Modified:
>Originator:     
>Organization:
	
>Release:        28Dec98 -current sources
>Environment:
	
System: NetBSD ra.ack.org 1.3I NetBSD 1.3I (RA-CURRENT) #0: Sun Dec 20 18:19:59 EST 1998 hvozda@ra.ack.org:/usr/src/sys/arch/i386/compile/RA-CURRENT i386


>Description:
	When making a source tree build mtreegets runa against
	NetBSD.dist during the proceses.  However, NetBSD.dist
	does not properly set the ownership on /var/msgs to
	allow msgs(1) to function after uncommenting the msgs
	alias in /etc/aliases.

	This not only affects source builds, but even installs
	of NetBSD.
>How-To-Repeat:
	
	Install NetBSD from a release or do "make build" in /usr/src
	and try to use msgs(1).  Watch it fail with mailer error 13.
	Notice upon examination that the ownership of /var/msgs is
	wrong.

	Also notice upon successive "make build"'s that the
	ownership gets reset to the wrong thing consistently.
>Fix:
	
	Apply this patch:

*** etc/mtree/NetBSD.dist.orig	Sun Dec  6 07:12:12 1998
--- etc/mtree/NetBSD.dist	Mon Dec 28 18:08:54 1998
***************
*** 1742,1748 ****
  ..
  
  # ./var/msgs
! msgs
  # ./var/msgs
  ..
  
--- 1742,1748 ----
  ..
  
  # ./var/msgs
! msgs		uname=daemon
  # ./var/msgs
  ..
  
>Audit-Trail:
>Unformatted: