Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2024 09:29:53 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e3b57f1485e7 - stable/14 - rc.subr: Consistently use an absolute path for sysrc
Message-ID:  <202410020929.4929Trg8090204@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by 0mp:

URL: https://cgit.FreeBSD.org/src/commit/?id=e3b57f1485e7e1aed0285b953c4cca746c78a938

commit e3b57f1485e7e1aed0285b953c4cca746c78a938
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2024-09-20 09:27:34 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2024-10-02 09:27:00 +0000

    rc.subr: Consistently use an absolute path for sysrc
    
    MFC after:      2 weeks
    Approved by:    christos
    
    (cherry picked from commit 401516dbc54e4a4cba3085cd605fbf6cf8293b79)
---
 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 05d46f74e598..5140f2a1addc 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -1113,8 +1113,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.



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