From root@uglabgw.ug.cs.sunysb.edu  Sat Dec 17 09:50:53 1994
Received: from uglabgw.ug.cs.sunysb.edu (hdwbsd.cs.sunysb.edu [130.245.9.200]) by freefall.cdrom.com (8.6.8/8.6.6) with ESMTP id JAA16526 for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Dec 1994 09:50:52 -0800
Received: (from root@localhost) by uglabgw.ug.cs.sunysb.edu (8.6.9/8.6.9) id MAA00377; Sat, 17 Dec 1994 12:50:50 -0500
Message-Id: <199412171750.MAA00377@uglabgw.ug.cs.sunysb.edu>
Date: Sat, 17 Dec 1994 12:50:50 -0500
From: Charlie Root <root@uglabgw.ug.cs.sunysb.edu>
Reply-To: gene@starkhome.cs.sunysb.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: Timed initialization code in /etc/rc needs quotes
X-Send-Pr-Version: 3.2

>Number:         63
>Category:       conf
>Synopsis:       Timed initialization code in /etc/rc needs quotes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    core (FreeBSD core team)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 17 10:00:01 1994
>Closed-Date:    Sat Dec 17 17:22:01 PST 1994
>Last-Modified:
>Originator:     Gene Stark
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
SUNY at Stony Brook CS Dept.
>Environment:

>Description:

	If you put

		timedflags="-M -F localhost"

	in /etc/netstart, the corresponding "if" code in /etc/rc will
	fail with a syntax error.

>How-To-Repeat:

	Put

		timedflags="-M -F localhost"

	in /etc/netstart.

>Fix:
	
	The occurrence of ${timedflags} in the "if" should be quoted,
	so that the code reads:

	# $timedflags is imported from /etc/netstart;
	# if $timedflags == NO, timed isn't run.
	if [ X"${timedflags}" != X"NO" ]; then
		echo -n ', time daemon'; timed $timedflags
	fi

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Sat Dec 17 17:22:01 PST 1994 
State-Changed-Why:  
Fixed. 
>Unformatted:



