From nobody Tue May 6 18:42:34 2025 X-Original-To: dev-commits-src-main@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 4ZsS1k4s8Nz5vFXh; Tue, 06 May 2025 18:42:34 +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 4ZsS1k4F6Dz3P30; Tue, 06 May 2025 18:42:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746556954; 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=jKnq0q6QLwioonjw8Yl/AS8QwaVkyfixAOyz3JIhluA=; b=Zzoa+643U6z5/q3ZXq8Gph0sUCj3NWJnV6XzymW8U/dT5+YxC69kRa589EP7VRHwlahrbE b5lJ1bY7A8EZNC+0HN0O388989Q3zE3TP3o6/8QaRslHjEH55NM2fAE4NvOqOYetGu6+5B uSIWLhO8ww4JbxlqSOheuOFpfW4EcTdsTpQvA/E4cstCKmR96MaWBoMTV6ouOpVOymtQXq NlmNjX5SUVtC8z7OXMId62RT5jkvd4HhbR4YTi+xTw0KUlYBXcW/rOq3YaJxOrGECVDQiy I+avGPqPxiov3Owd7onUIQt7HsKGRKKxh1JzobkeP2nMVt3Xw++yNP1DrPB+0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746556954; 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=jKnq0q6QLwioonjw8Yl/AS8QwaVkyfixAOyz3JIhluA=; b=Pa8FwhQoDaQjajiMJiB69XYzkiGkJYPVmRgJKC4oc3MjZ3+mHpqyQa4lj3OrJEBHAGNgXd ktumIKA6hIRA+k4t7DbNzoksbleUZQTS4IBaR3Alwp+UTbGI2j60bPwTIEr31RyS7zGskE 9q2oYKNyqj4OZECgDzuM09t8ST6an2x++nXRyoCIzPhIXiPmMjsWEOoWz/hcpg6LPJMy16 21yqIXxZRWWdpI/43OfgqJvLoICWLNgoZzRD92K0UFRl+eMat7DeU9kMFN305qNihunQLe bJjhJ4yma5srYXF/23vG5zYGNtw282pnoi9IjY3GUUkUbVi4bnItvQIB86ojjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746556954; a=rsa-sha256; cv=none; b=jbj9G5ifl3yBNol6Lo9bis8hsxtiMEiZwtafpjjfbP6maLaroDaeJNgwKV9wi/ticBhg9m 1B5RKcA6D9tbB+mN+6pa0rYoRe4U4D3tUYwo+g2uLsWgjd897qL3dYzjIOF3mPVR5BP31T qfExv4JyS1DgwOA3CI7wT7wtSQxKpYqh+PWvxChiMpHCLNt6sDCIzEx9nEmF+iBemSdWPe 8SLjvWdd8hVWo8Xtx10XRY2A51sWgFAtTF2Argrolod3cvTD0qagcJT5Xa5NZI1zrY1emr lZpgBTv0rYuvNxe1z1Tj34Jo7dUEFzXYnZDNdyCHrUVIA8QagWhOGJWPuWnrqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4ZsS1k3kvnz1B47; Tue, 06 May 2025 18:42:34 +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 546IgYgT057129; Tue, 6 May 2025 18:42:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 546IgYVO057126; Tue, 6 May 2025 18:42:34 GMT (envelope-from git) Date: Tue, 6 May 2025 18:42:34 GMT Message-Id: <202505061842.546IgYVO057126@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 81449fb2c044 - main - service: Use explicit path for /usr/bin/env List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 81449fb2c044a85ecd9c5a15c6b470cdbcacacfc Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=81449fb2c044a85ecd9c5a15c6b470cdbcacacfc commit 81449fb2c044a85ecd9c5a15c6b470cdbcacacfc Author: Ed Maste AuthorDate: 2025-05-06 15:28:13 +0000 Commit: Ed Maste CommitDate: 2025-05-06 18:42:17 +0000 service: Use explicit path for /usr/bin/env A reddit thread[1] reported an error from env(1) invoked by service(8), wwhen GNU coreutils utilities were installed without `g` prefixes. [1] https://www.reddit.com/r/freebsd/comments/1kfzh78/service_command_changed_between_freebsd11_and/ Reviewed by: kevans Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50195 --- usr.sbin/service/service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/service/service.sh b/usr.sbin/service/service.sh index 65aa18181101..245430107277 100755 --- a/usr.sbin/service/service.sh +++ b/usr.sbin/service/service.sh @@ -174,7 +174,7 @@ cd / for dir in /etc/rc.d $local_startup; do if [ -x "$dir/$script" ]; then [ -n "$VERBOSE" ] && echo "$script is located in $dir" - exec env -i -L -/daemon HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ${VARS} "$dir/$script" "$@" + exec /usr/bin/env -i -L -/daemon HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ${VARS} "$dir/$script" "$@" fi done