Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2022 06:10:46 +0100
From:      Andre Albsmeier <Andre.Albsmeier@siemens.com>
To:        freebsd-stable@freebsd.org
Subject:   Different PATHs in /etc/rc and /etc/rc.shutdown
Message-ID:  <YjgI1siRlyHoj0Pd@bali>

next in thread | raw e-mail | index | archive | help
Today I was bitten by the fact that /etc/rc.shutdown and /etc/rc set different
PATHs at least on 12.3-STABLE (I used a command sitting in /usr/local/sbin w/o
specifying its path and it worked in stop_cmd() but not in start_cmd()):

/etc/rc.shutdown: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
/etc/rc:          PATH=/sbin:/bin:/usr/sbin:/usr/bin

Is there a reason for this? Or should they be made equal? In the latter case
I will file a PR...

	-Andre



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YjgI1siRlyHoj0Pd>