From 30cb2617acd75eb5ce07e447a8530fcb74abc0fb Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Thu, 26 Feb 2004 12:35:58 +0000 Subject: [PATCH] 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 --- etc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.subr b/etc/rc.subr index 6a3845c58c4e..b5ef06a762b2 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -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