Allow spaces in _chroot

Noticed by:	adj (IRC/#bsdports)
Approved by:	hrs
MFC after:	1 month
This commit is contained in:
Chris Rees 2012-10-27 17:43:30 +00:00
parent 31e8efde08
commit b2de5bffb6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242183

View File

@ -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