Skip to content

Commit

Permalink
rc.subr: Consistently use an absolute path for sysrc
Browse files Browse the repository at this point in the history
MFC after:	2 weeks
Approved by:	christos
  • Loading branch information
0mp committed Sep 20, 2024
1 parent 9dc67a7 commit 401516d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libexec/rc/rc.subr
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 401516d

Please sign in to comment.