From sjr@home.net Mon Aug 16 19:17:26 1999
Return-Path: <sjr@home.net>
Received: from cc158233-a.catv1.md.home.com (cc158233-a.catv1.md.home.com [24.3.25.17])
	by hub.freebsd.org (Postfix) with ESMTP id 492CE14D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Aug 1999 19:17:21 -0700 (PDT)
	(envelope-from sjr@home.net)
Received: (from sjr@localhost)
	by cc158233-a.catv1.md.home.com (8.9.3/8.9.3) id WAA92220;
	Mon, 16 Aug 1999 22:17:45 -0400 (EDT)
	(envelope-from sjr)
Message-Id: <199908170217.WAA92220@cc158233-a.catv1.md.home.com>
Date: Mon, 16 Aug 1999 22:17:45 -0400 (EDT)
From: sjr@home.com
Sender: sjr@home.net
Reply-To: sjr@home.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: rc file expects /var/msgs directory to exist
X-Send-Pr-Version: 3.2

>Number:         13184
>Category:       bin
>Synopsis:       rc file expects /var/msgs directory to exist
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 16 19:20:01 PDT 1999
>Closed-Date:    Sun Sep 12 11:16:43 PDT 1999
>Last-Modified:  Sun Sep 12 11:17:51 PDT 1999
>Originator:     Stephen J. Roznowski
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	/etc/rc expects that the directory for /var/msgs exists
	when it tries to make the bounds file, if it doesn't then
	an error message is reported.

>How-To-Repeat:

	Delete /var/msgs and reboot.

>Fix:

	This fix adds checking for the existance of the /var/msgs
	directory before attempting to create the bounds file.
	
--- etc/rc.orig	Mon Aug 16 22:04:36 1999
+++ etc/rc	Mon Aug 16 22:06:26 1999
@@ -383,7 +383,7 @@
 fi
 
 # make a bounds file for msgs(1) if there isn't one already
-if [ ! -f /var/msgs/bounds ]; then
+if [ -d /var/msgs -a  ! -f /var/msgs/bounds ]; then
 	echo 0 > /var/msgs/bounds
 fi
 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: roberto 
State-Changed-When: Sun Sep 12 11:16:43 PDT 1999 
State-Changed-Why:  
Fix applied in revision 1.197. Waiting approval for MFC in 3.3-RC. 
>Unformatted:
