From nobody Fri Sep 20 18:38:24 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 4X9Lk86bf1z5WkLD; Fri, 20 Sep 2024 18:38:24 +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 4X9Lk84DPJz4Gpv; Fri, 20 Sep 2024 18:38:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726857504; 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=4ari8mWzZdlxBGxnen463hIjZZSCZkSVKLusobHc67k=; b=b08UyGQ7DgV9NmYu+g5OzvCoybir7YIOMS4UVy2/aAI3Cflsp0VDAZJrfz8iaG+bLBMABU 7cLjdQeA2NGys94GRDV5mmZiOgd9+7dgM4xmDZvZlFFX3Tp+8xAjliML6ue4FMbpOYEqSr bw22I9a8BNhXpJiWpX3s3eA94a7IOHVpnYzeHN9A+SOa+HQ1OWlUK0B08cLCxHtnoEsaoQ Bkvg/dbw776SGrvfMUGUy9x0JXgbR92lAIRnYqG1tU0bAhroxDHMDE8KW3kklqvkRLrFQX cKRFV6vK2yIVZ1YaaHWIMcc3AljmoU1fR1xv+awVh1KRGa842++gYlMJpS6UuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726857504; a=rsa-sha256; cv=none; b=SX8TJbYBDKbB49/ogZ+S9Cb3oTB5gwSqJJswhujes7WaTBEpP6skXNY6vDIWAbrrzOT7qZ FFShbDoE8hWk9p6To0AiFcME6fFRXP4khaoVOKJ0i+aoO9gabciXCqCHA/uYp9J2X1STzM E5bTcZIff0+tQImOJDG46mIlp9H4bWUyGwk25RvzUMFhgIlINxIAGMAf4pfd06wp6ONu/l UNHSywB0xfCVB+iFi3d+fPkBQMBPsMX2qoMcr9MV7TfyWq9sZ2nXjzi/sn98NEhn5eU6hz WfM6pcuePFmFfBE35YOq3hWb2+I1Q5GP65Q4Ca6FZ/L569rIPHe6hIDnvdjxVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726857504; 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=4ari8mWzZdlxBGxnen463hIjZZSCZkSVKLusobHc67k=; b=oCbU/aFigO7X55PyQrEXddCzSjirmSirBK/nSCQ9K9qSF8YdgBKF8V+jG69/xWMqxVc7ce LnErIUV6x/6fWFfDM6YQIr3aSLXOgWDU4TP7WlhH30k2EBmCCZnmYHm4QU0D3ReZel/1rx 0HQB7vNWg4rMBFtdOmmyPjneo/cczD74JmocCUdJxNUZqAzDwG/QDd/0ZHVUQxbDK+r7Dm pUDrg8kn6T0ugj7dEGnhEyZ74fWPJJ7XAO1yMNAOGAH3lbEaJIzFzWHI7XcnvvckWGxDi/ WlHtVFrHtvUhaqnFhuWRqc3SAuZlLJGtEG/OXE85kybmdw5iL3M8Yjqdu2rQ4g== 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 4X9Lk83qJmz1155; Fri, 20 Sep 2024 18:38:24 +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 48KIcOia022806; Fri, 20 Sep 2024 18:38:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48KIcOax022803; Fri, 20 Sep 2024 18:38:24 GMT (envelope-from git) Date: Fri, 20 Sep 2024 18:38:24 GMT Message-Id: <202409201838.48KIcOax022803@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 401516dbc54e - main - 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/main X-Git-Reftype: branch X-Git-Commit: 401516dbc54e4a4cba3085cd605fbf6cf8293b79 Auto-Submitted: auto-generated 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.