git: 401516dbc54e - main - rc.subr: Consistently use an absolute path for sysrc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Sep 2024 18:38:24 UTC
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/src/commit/?id=401516dbc54e4a4cba3085cd605fbf6cf8293b79
commit 401516dbc54e4a4cba3085cd605fbf6cf8293b79
Author: Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2024-09-20 09:27:34 +0000
Commit: Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2024-09-20 18:28:59 +0000
rc.subr: Consistently use an absolute path for sysrc
MFC after: 2 weeks
Approved by: christos
---
libexec/rc/rc.subr | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index df1501707a67..58e30c897897 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -1409,8 +1409,8 @@ run_rc_command()
delete)
_files=
- for _file in $(sysrc -lEs "$name"); do
- _out=$(sysrc -Fif $_file "$rcvar") && _files="$_files $_file"
+ for _file in $(/usr/sbin/sysrc -lEs "$name"); do
+ _out=$(/usr/sbin/sysrc -Fif $_file "$rcvar") && _files="$_files $_file"
done
/usr/sbin/sysrc -x "$rcvar" && echo "$rcvar deleted in ${_files# }"
# delete file in rc.conf.d if desired and empty.