diff options
author | flz <flz@FreeBSD.org> | 2006-11-26 22:02:09 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2006-11-26 22:02:09 +0000 |
commit | e1d91fee6db5448edd3677f17fe42d18471a66e7 (patch) | |
tree | dbc0c1c9a3bb57341684f656d38abfba1f7b146e | |
parent | b891fb48a3e36235bf625af7ac078a563c68951e (diff) | |
download | FreeBSD-src-e1d91fee6db5448edd3677f17fe42d18471a66e7.zip FreeBSD-src-e1d91fee6db5448edd3677f17fe42d18471a66e7.tar.gz |
Teach find_processes() to use ${name}_chroot.
Obtained from: NetBSD
X-MFC after: 6.2-RELEASE
-rw-r--r-- | etc/rc.subr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.subr b/etc/rc.subr index 3df44d2..4de6901 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -1,4 +1,4 @@ -# $NetBSD: rc.subr,v 1.66 2006/04/01 10:05:50 he Exp $ +# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ # $FreeBSD$ # # Copyright (c) 1997-2004 The NetBSD Foundation, Inc. @@ -261,7 +261,7 @@ _find_processes() _pref= if [ $_interpreter != "." ]; then # an interpreted script - read _interp < $_procname # read interpreter name + read _interp < ${_chroot:-}/$_procname # read interpreter name _interp=${_interp#\#!} # strip #! set -- $_interp if [ $_interpreter != $1 ]; then |