summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2012-10-27 17:43:30 +0000
committerChris Rees <crees@FreeBSD.org>2012-10-27 17:43:30 +0000
commitb2de5bffb6bdad39c3986f503604fafee2ecf50f (patch)
tree79aaa3efb9bb14a6d126320510812c20a31488b4
parent31e8efde08a9ac4f637a017e54f00f1b37f92e61 (diff)
downloadsrc-test2-b2de5bffb6bdad39c3986f503604fafee2ecf50f.tar.gz
src-test2-b2de5bffb6bdad39c3986f503604fafee2ecf50f.zip
Notes
-rw-r--r--etc/rc.subr6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 86442d460074..5f41d1819da2 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -261,8 +261,8 @@ _find_processes()
_pref=
if [ $_interpreter != "." ]; then # an interpreted script
- _script=${_chroot}${_chroot:+"/"}$_procname
- if [ -r $_script ]; then
+ _script="${_chroot}${_chroot:+/}$_procname"
+ if [ -r "$_script" ]; then
read _interp < $_script # read interpreter name
case "$_interp" in
\#!*)
@@ -705,7 +705,7 @@ run_rc_command()
return 1
fi
- if [ ! -x ${_chroot}${_chroot:+"/"}${command} ]; then
+ if [ ! -x "${_chroot}${_chroot:+/}${command}" ]; then
warn "run_rc_command: cannot run $command"
return 1
fi