Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc run_rc_command(): when checking if ${command} exists bef...
details: https://anonhg.NetBSD.org/src/rev/01592c906059
branches: trunk
changeset: 548453:01592c906059
user: lukem <lukem%NetBSD.org@localhost>
date: Fri Jun 27 04:06:01 2003 +0000
description:
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]
diffstat:
etc/rc.subr | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7b37f6a31561 -r 01592c906059 etc/rc.subr
--- a/etc/rc.subr Fri Jun 27 03:40:44 2003 +0000
+++ b/etc/rc.subr Fri Jun 27 04:06:01 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.56 2003/06/03 14:00:45 christos Exp $
+# $NetBSD: rc.subr,v 1.57 2003/06/27 04:06:01 lukem Exp $
#
# Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -496,7 +496,7 @@
exit 1
fi
- if [ ! -x $command ]; then
+ if [ ! -x ${_chroot}${command} ]; then
return 0
fi
Home |
Main Index |
Thread Index |
Old Index