Bug 63 - Timed initialization code in /etc/rc needs quotes
Summary: Timed initialization code in /etc/rc needs quotes
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Core Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1994-12-17 10:00 UTC by Charlie Root
Modified: 1994-12-17 10:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Root 1994-12-17 10:00:01 UTC
	If you put

		timedflags="-M -F localhost"

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

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
How-To-Repeat: 
	Put

		timedflags="-M -F localhost"

	in /etc/netstart.
Comment 1 Andrey A. Chernov freebsd_committer freebsd_triage 1994-12-18 01:22:01 UTC
State Changed
From-To: open->closed