From nobody Sun Oct 06 11:07:26 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 4XLzyQ5Dxrz5XgCs; Sun, 06 Oct 2024 11:07:26 +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 4XLzyQ2JxBz4sGB; Sun, 6 Oct 2024 11:07:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728212846; 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=zPYY4ZPbQEdwNJEmggVkawOQWMFvIp4G/vris0K7PcQ=; b=UaYgYnXMfEJMFbC3Z7m18FLtmEJsvknpCyjHyA/qjlNgevxmKEa+ZcHqJvdHCkxDqPnJRv PVykqWejSP0fM1ZdPNxbm9k3Paj2TUEItDDyj6PbYX9JEKwRtApu0ALibV1HqLFzkJZ09P 2W/HLcqzTBgIKwBCHk0qwWict259sqGfKvfUKa2nqLUKlElR+GCzYsYCQzxiPhbFWeRe6q gaizqpdL59nVcO0n3Lmw4AkkB+6f9LQqpMc48oj24VBuW1PLZ4WZBcZqvLRzWZjuRrAd40 GMPVX0QBWOO7IskQkUlRsafJoMvUwygD/V/CmaPhhVu7TwfKfLdpJ+LaITekjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728212846; 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=zPYY4ZPbQEdwNJEmggVkawOQWMFvIp4G/vris0K7PcQ=; b=aa54OtQQOV0eTu63E6wVRTXnw/imQduWlBGPbUlZ6r5R0z5ubjbrqXCWYCfnZxmXMHEr2u XstUxeWQ3u5FArbo/BcwpAwWnjIINMEngFell4ne+es3EGynNVvXFgRxUeaFAzcJiph302 3d4RBGDr/uMCJEvOHtnkTBA8W29AgBsa6wkJF4ynQddmadSMnBJ9b19q1Pgm+oz2DfB0HY /ESWwYURDLzz/IDmKaDRsHvDBqMcbMqStl9yQLgH8zukQz4wQMKfi48F79Pdx0qBt8GEKY CGyc6UF0oIMUI1wCmcMZ4UJzR+Ewk0wZnssTfDs6rIDNkgJTY/XhXN1PD8M3/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728212846; a=rsa-sha256; cv=none; b=H0FJfqO2u8J5ww/9afNR9ZBAn9un5WLxVhVnfYPH+5PUzn4PT/7qKu5DhmbkZEva0girVB 7mRCo7Xh9AjdTUeDb5DIOClxFiv2jBIx6IIyCYH+mHTTizhtkeKldbasZ8NASlZCLa19EC FajonJgagC+CwjhVbuNoBD/6WtsxviF/nJQNRGBnOquBBYQtUUpGj1hg0Ngv8lktvJbwCI wNTM0jY1rs3fVFbXnOtLCBro6TDz/BeIUHGzN4fbOgSQd+EWzj4fuPsiAO38pM/EldS4V3 FTeDgQEzFzocC3HWKZIAPvb0c4LgOSOLQOJBNqaS1XADX0UeX5zQmfq3l50aqg== 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 4XLzyQ1t13z10PB; Sun, 6 Oct 2024 11:07:26 +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 496B7QER039374; Sun, 6 Oct 2024 11:07:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 496B7QvW039371; Sun, 6 Oct 2024 11:07:26 GMT (envelope-from git) Date: Sun, 6 Oct 2024 11:07:26 GMT Message-Id: <202410061107.496B7QvW039371@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 46d52461bf36 - stable/13 - locate.updatedb: Revert to using cat to copy the db. 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: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 46d52461bf36d941b817e52a637845142a90946a Auto-Submitted: auto-generated The branch stable/13 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=46d52461bf36d941b817e52a637845142a90946a commit 46d52461bf36d941b817e52a637845142a90946a Author: Dag-Erling Smørgrav AuthorDate: 2024-10-02 15:54:57 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-10-06 09:16:34 +0000 locate.updatedb: Revert to using cat to copy the db. This script is usually run unprivileged, so install fails to create a temporary file while copying the finished database. Revert to using cat, which can overwrite the existing file as it is usually owned by the same user which is running the script. Fixes: f62c1f3f8e91 MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D46872 (cherry picked from commit 26bd374e72681860af4bf9d639308ad245949460) --- usr.bin/locate/locate/updatedb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/locate/locate/updatedb.sh b/usr.bin/locate/locate/updatedb.sh index 846fd6dc0d7b..01d993918e92 100644 --- a/usr.bin/locate/locate/updatedb.sh +++ b/usr.bin/locate/locate/updatedb.sh @@ -96,5 +96,5 @@ then echo "updatedb: locate database $tmp is empty" >&2 exit 1 fi - install $tmp $FCODES + cat $tmp >$FCODES fi