Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/etc Pull up revision 1.57 (requested by lukem in ticket...



details:   https://anonhg.NetBSD.org/src/rev/b364b49d6bf1
branches:  netbsd-1-6
changeset: 530454:b364b49d6bf1
user:      grant <grant%NetBSD.org@localhost>
date:      Sun Jun 29 00:07:36 2003 +0000

description:
Pull up revision 1.57 (requested by lukem in ticket #1346):

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 9a01486eb4e5 -r b364b49d6bf1 etc/rc.subr
--- a/etc/rc.subr       Wed Jun 25 22:17:32 2003 +0000
+++ b/etc/rc.subr       Sun Jun 29 00:07:36 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.49.2.2 2002/11/24 15:42:37 tron Exp $
+# $NetBSD: rc.subr,v 1.49.2.3 2003/06/29 00:07:36 grant Exp $
 #
 # Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -486,7 +486,7 @@
                                exit 1
                        fi
 
-                       if [ ! -x $command ]; then
+                       if [ ! -x ${_chroot}${command} ]; then
                                return 0
                        fi
 



Home | Main Index | Thread Index | Old Index