From nobody Wed Oct 02 15:55:58 2024 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 4XJfYB3wdmz5Xjgp; Wed, 02 Oct 2024 15:55:58 +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 4XJfYB2RZJz4161; Wed, 2 Oct 2024 15:55:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727884558; 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=kO0xSquQ2S491AR3W45ky+AI1++/bE7Yi1vDsaUGnEo=; b=mMxSBczlEF6VI1bUK/UNFMgdHXpLcnmCBADqNgYQbcCKMXoiTwu7oJsbTRkd4I23Qorjvg ts15cDcUtnwU1OTboi97aY2rbqAIVixGCqtjBDhlnn5bct0Jv2/18kXDKr7NYQ3FUBunb6 4nQD4KQod8UCu7GbJg1qIsXQARmFNgOg+IHKzjv5KTVEwP8Iyj/JjsjDzP5Yhqkljc9V+l CphiOjbfiCeMcCzTKY7bHlZoI2hgsl1w10BZ91t1jXayDY5KFWgZK59sbZc+C+Xi301F9Q aJOY927S/b3YgFqXXZYvBNgI0h5A+Wi6sKOoF42Jn4wobbk2rsUSb8wyHFm7Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727884558; 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=kO0xSquQ2S491AR3W45ky+AI1++/bE7Yi1vDsaUGnEo=; b=Akokby/mEEb39ZTqqw5+IjRkCzqVeaaOczomjgcbfTwvFavwdRjFAfcNOe1aYig2oDTsLA YGoDIT0o4UvIREjzAwz/AwAneQGqzlI5JBftJ5gE1Eo9fIggBH1l5821JcKBn5sFukJzNw jjguIqt+CSgFy5uqlVOzqFaE4NPJAzkFYE8/BDSbZMfH4dl/cE5wagHYWGwy3Lr0Cccq1c GApx84q44DNyYdREg0EG0Ey8exV8fCzpYuvkoyS9Ptjs+c9aw/JUxWuTnF+R3DXS+PUBiY M3cexlthy77zfPN4oVkqDY05+ukTKLiVPFheht/mUu6THEI1M98jjXiXWsAzpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727884558; a=rsa-sha256; cv=none; b=sMeCP5Yd7nOp3GWCDn7SmUU4ojq1vQ17VaOOBW2s1QnIX3xfkWhDpVe/cFmanvww2OSvj/ gunc6lmwzFBrElgKkpFU16ans+VvqEzZUaMG6NGi5vEPZedFghvboYmFjzRfbzrTm/B9DO u4ayminFDU2HSILFLA2Q8a2xCBQG1WPPUYb2Gwl6Vh+NgzP5MQ9DdLNqA30Vx4cuLNQovQ ay7TMd/MQV0AxICZVrcqKj7HH81UrN8L0aOZopRy6EYXa5FxC10ELAF+M7zx3eNvgw0UTi rQCvyMd+IjRM2znZMhrANQ6v8NpS2Hu00GhxE9TZStD655abyOVRL1tNVTYwAA== 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 4XJfYB1smCz1RB3; Wed, 2 Oct 2024 15:55:58 +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 492Ftw9m050933; Wed, 2 Oct 2024 15:55:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 492FtwoO050930; Wed, 2 Oct 2024 15:55:58 GMT (envelope-from git) Date: Wed, 2 Oct 2024 15:55:58 GMT Message-Id: <202410021555.492FtwoO050930@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 26bd374e7268 - main - locate.updatedb: Revert to using cat to copy the db. 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: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 26bd374e72681860af4bf9d639308ad245949460 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=26bd374e72681860af4bf9d639308ad245949460 commit 26bd374e72681860af4bf9d639308ad245949460 Author: Dag-Erling Smørgrav AuthorDate: 2024-10-02 15:54:57 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-10-02 15:55:06 +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 --- 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 ca1a79116a91..7d42cbb2260d 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