Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 1999 22:17:45 -0400 (EDT)
From:      sjr@home.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/13184: rc file expects /var/msgs directory to exist
Message-ID:  <199908170217.WAA92220@cc158233-a.catv1.md.home.com>

next in thread | raw e-mail | index | archive | help

>Number:         13184
>Category:       bin
>Synopsis:       rc file expects /var/msgs directory to exist
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 16 19:20:01 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908170217.WAA92220>