From nobody Wed Oct 02 09:29:53 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XJTzj3xY5z5YG3y; Wed, 02 Oct 2024 09:29:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJTzj3P1dz3wrD; Wed, 2 Oct 2024 09:29:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727861393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QGEX3D7GSe834O3VZ0HFmx72cTZv9hI4CM63yFqQinI=; b=DPAn9vEyoWk/dFinG+ghYow1aSO1fhmF5sNOo7sTUFvKtJvTO9LxENn3akGUK7gog2paLY rjoxgG2ID44oWSK+k/obFn3T0Kc/fA3jzQf5AffFIl9vS8P7UNhWsdhYMf3WMcEw7G+k8p kpuQd/tw2D29Z0GJrwZ2fXQEU+PCDpPpI45INXl6dAcSd3LWWg3eT/6RYpv8dOGkuFckNp 58WxLw3CCZbtioVIYxWKwo+PYYL264YXjROBVweUBbL6Jq6RuMdGGkkU6W8+Wx7qtniLLk xkBr09mg5uUjXkoY88j/7yFvK3fJ6f+4yf+k1qnJUiV78r8sB9cKybTVyuFcBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727861393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QGEX3D7GSe834O3VZ0HFmx72cTZv9hI4CM63yFqQinI=; b=Y0zL/0Dd0BxDGBN4Lhn21l4pogLY87bBGJfGjC0hq3/iXoWohnDr69mUzCN6tnol4U0bBS Zr/4B5Plfj0FTL1xhisUp13Cz4Zd/2f+LxSJG37/gJ2iYO0HLRkNICnbc3bq+jNld4kVM7 xFWbXhcDGhKCJW1fKbgY4AbVYoXRWpWqV45KDlrc0joRRrmMPCWE7fBgOUS7V6GYVAd4hr yDsM+OJkONGW+uJTZOA7NxI1ElHQ34mXCC5rzrvwWzVgoO++uRruVheqirQCVS4BAYXk8r LzI5Z7q/H4NVtcc0hwGZwajnaxen/TQDaZZIMlii/zTwFTEdgKM0K80aFymiSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727861393; a=rsa-sha256; cv=none; b=PjBG0X4mvaislH4/y+xGCVkJjZUsAeB82VklaNQQBEbE1dPWbu9ZN/r/Esgj6fTUmb+Vwm 3OiNlG2tD6QfnumoO3s3ltOFRfQs1+9N3Z2Jb/nKbb39+KqkH4JsF4avAcC0wUmqJCpI9T jJza1Gut3yot3kDzY0uxuN7elufcVQWAEXCpwGhyko3Lm1MOMybJduORqmjCYg8OxjYGEF 3COVR2Z7HpWlCcSGfj+0mO9GJP1XWFlSY9v9LfTcMim84l4OANChI4WwzSL9vZv3Nnv5+r noHw/CQRW8BDDiiJJd5pXW0mwvqK6L9qekV9lGijcLVBfSEjP4HrfPF3+sM8eA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XJTzj300tz1FBd; Wed, 2 Oct 2024 09:29:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4929TrR7090207; Wed, 2 Oct 2024 09:29:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4929Trg8090204; Wed, 2 Oct 2024 09:29:53 GMT (envelope-from git) Date: Wed, 2 Oct 2024 09:29:53 GMT Message-Id: <202410020929.4929Trg8090204@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: e3b57f1485e7 - stable/14 - rc.subr: Consistently use an absolute path for sysrc List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e3b57f1485e7e1aed0285b953c4cca746c78a938 Auto-Submitted: auto-generated 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.