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/e9a24d4153e2
branches:  trunk
changeset: 1024817:e9a24d4153e2
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 e86deee12823 -r e9a24d4153e2 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