NetBSD rev. 1.57

run_rc_command(): when checking if ${command} exists before executing it,
  be sure to check under ${name_chroot} (if set).
  Fix from Ed Ravin in [bin/18523]

Obtained From:	NetBSD
This commit is contained in:
Mike Makonnen 2004-02-26 12:35:58 +00:00
parent 42477cdb78
commit 30cb2617ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126287

View File

@ -581,7 +581,7 @@ run_rc_command()
exit 1
fi
if [ ! -x $command ]; then
if [ ! -x ${_chroot}${command} ]; then
info "run_rc_command: cannot run ($command)."
return 0
fi