Source-Changes-HG archive

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

[src/trunk]: src/etc Set the path unconditionally to what rc sets it to, so t...



details:   https://anonhg.NetBSD.org/src/rev/d9a679a317d8
branches:  trunk
changeset: 991072:d9a679a317d8
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 06 23:11:43 2021 +0000

description:
Set the path unconditionally to what rc sets it to, so that when running
individual scripts like 'env - /etc/rc.d/syslogd restart' programs like
rcorder are found.

diffstat:

 etc/rc.subr |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 2d965ae35edd -r d9a679a317d8 etc/rc.subr
--- a/etc/rc.subr       Sat Nov 06 22:11:39 2021 +0000
+++ b/etc/rc.subr       Sat Nov 06 23:11:43 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.106 2020/12/20 21:30:28 uwe Exp $
+# $NetBSD: rc.subr,v 1.107 2021/11/06 23:11:43 christos Exp $
 #
 # Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -46,6 +46,7 @@
 _rc_kill_ntries=
 "
 
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin
 #
 #      functions
 #      ---------



Home | Main Index | Thread Index | Old Index