Allow spaces in _chroot
Noticed by: adj (IRC/#bsdports) Approved by: hrs MFC after: 1 month
This commit is contained in:
parent
31e8efde08
commit
b2de5bffb6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242183
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user