From nobody Mon Sep 30 21:32:54 2024 X-Original-To: freebsd-current@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 4XHZ6v5NlCz5XhYD for ; Mon, 30 Sep 2024 21:32:55 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XHZ6v4tGhz4NsW for ; Mon, 30 Sep 2024 21:32:55 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727731975; 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: in-reply-to:in-reply-to:references:references; bh=4p1ethdHUqU0p1VaR1MVEqLRltq+F4PCj3Mn+QO+WCI=; b=yer/LFqcNX8Eqa+k8mECgyczVX4IuJOkRHMaAPFFTLwpqRS9Gq+ejO4c1UE4vYmLZ76Af9 tllql4Umr1MDIslZYDMr6KY3LnC8oMySW7l4NdMWri6gg0m1s7wC7YqKXPO64JKFd7po61 nWs1hDe5No+VBzE6Gpx4C37u9pLCv+DjpIDkJX7XPwomhIwepZZmT/Om2ZuMYYZA8B/YYA kleh0R9cY+wNGgiLKByydfeKVCxhUypPVbHG+UqIjB3+Fc5UQo/VNqHKtIrxEWPsgkQYvZ xY5Umn8AtTCQ/UW7IIlcgewYk5z9ZdZ/rmwUke1ILcDlsOSqy4heAU6nl36jLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727731975; 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: in-reply-to:in-reply-to:references:references; bh=4p1ethdHUqU0p1VaR1MVEqLRltq+F4PCj3Mn+QO+WCI=; b=GHjJ5XaaS/G8jYDseK3wc8abwDmSsAKg5m/kNQRPz301H48lIWENz/bU0JeGc7RXnIrmxi 2WzAvxS7KSBiOd7eauKWfXEEYmv41p9BNnXzNIu+vh9Byno6UCKtUu09OhGuCXlQQtP+t4 QLsJGnwfB8kEQN/niQEmgSz7rpIZipQSF4nm73vaF+c5rfrXh3AbuU1AtQzDes790FmaA1 O1DRpm+KiOL1+rFTFRrOrSGGzf1nFgdqYbK7KbG0B2M90V9Zm09z9k3D0mon6DofFDINhw 2rp7kQjs6YWBssTIZ9fPk4dXiFXVCEuKrzULdsV3KdgwJMzgd4ia0KXDbsOJ5w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727731975; a=rsa-sha256; cv=none; b=hNTk1gpbFv0JAShR4LT0++cf7EcGm1woxNonZtfxaNE2YDzijzkq4eoeyS3ezuXCDhR8LJ mzbzITjNFzhMRlxJ40tGJj8cOXo6tHmCS+jXlivNzwPEUIzMPQNQMIDEYMWy4W1DrfV/jD eaFruSbq+bFLdPkdq7dhZnbPy6euopP46mvBV6lxWgsvRUgcLpbE2Pth0NZ2+2HbdevoXk K2CdvP6T0C5qhjLOhWr5YrF58Zy0/OccgKoAv15Z0gpFQlTUsxqsHsOm346vqGEQMhSjnc w1NqrE6t+rbPifW4YzLWhyCNvm7ArxD3Bi+Kq30y509Gre8nHUq59ivOot37Jg== Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XHZ6v3NmMzVCc for ; Mon, 30 Sep 2024 21:32:55 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: Date: Mon, 30 Sep 2024 16:32:54 -0500 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: weekly locate error Was: September 2024 stabilization week To: freebsd-current@freebsd.org References: <3313f951-4f9e-4298-bbd8-f82c5a15a0e3@protected-networks.net> Content-Language: en-US From: Kyle Evans In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/30/24 16:28, void wrote: > On Mon, Sep 30, 2024 at 02:08:18PM -0700, Gleb Smirnoff wrote: > >> M> > Manual run of the periodic job doesn't reproduce the problem :( >> M> >> M> Backing out commit f62c1f3f8e91c78d402e1db4e518e4899a4ba2b9 >> resolves it for >> M> me, > > Sorry but I'm quite dense regarding git. Can you describe how exactly > what steps you took to 'back out of > f62c1f3f8e91c78d402e1db4e518e4899a4ba2b9' > > I know about git pull and clone and reset --hard and git rm and that's > about it ;) You could just apply this manually for now: diff --git a/usr.bin/locate/locate/updatedb.sh b/usr.bin/locate/locate/updatedb.sh index ca1a79116a91..2c06e06fae4d 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 It might be that the better long-term approach is to teach updatedb.sh how to drop privileges and push that out of the periodic script to avoid surprises like this from the different execution environments. This /feels/ like the kind of thing we could take an opinionated stance on, maybe providing an escape hatch of some sort if someone really wants to complain that they can't document all filenames on the system. Thanks, Kyle Evans