From nobody Wed Jul 30 03:48:46 2025 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 4bsJ9B5MJ3z6339B; Wed, 30 Jul 2025 03:48:46 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bsJ9B4WmLz3dn8; Wed, 30 Jul 2025 03:48:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753847326; 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=uY/osSOZUhLPSeNQkNNnxTZsvjIDj4LbJrMWYJpPTJM=; b=rx2T8h3ZDAKr74frIpmEfoUrmNQWRo3XrPmaq4tQZiXIgI1VXARjwyJcNiwpTYmI9NiUCH Two5CfOazmg/s0FXTxp8LJ/mS38KrByhqaxoJexqTFLxaAmnJTURrDWaYARBioAFyUxjZw 6zGN2MSRmdrkCTeE6/H0WSSg98IYHr44mBu+OEqMdU/S3/OrSkPuIOwBfyRnAtrW5BaNIG sSnKh3jaCuPJNAmkuzuEhdMTV8z/QQrpEAmQJqEhCw7kON/U/MD+x62H2QmKcmXQnIIbSb GpyXqzDdNs2mGgQ47qoprUkIx0JHyKexYolOEEPBuT1lEz/QvWk6q3EVtjHY6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753847326; 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=uY/osSOZUhLPSeNQkNNnxTZsvjIDj4LbJrMWYJpPTJM=; b=dtOanIlZiQ6JsxsG0GiESF8j8FbgYrRD8sKHxi4O8/GhBJgE8l3DqhKmC54D9VqQ9BqgAW XisMIix5pcJExbZdNdWEe3nhy+sLOUO15NBTf7I+rzsukg/tvOHrydipBlFx7n5E+d5lfg 9iPa0TVxKky8MRiPXdUTjulQHCPb9yPE2KavkHTgD4rjpUrNyLNKbmRDJxUubJLcNG71Uh p0BXPH9+m225kjZcuE1sxomSdDE2OC7Cf/2jYB73+8Dd18xAMW90dxAWkDWcsWB4OVqfwN ga+Y5GE8FLxX+T8ztafgNT161808oWMdvb9bY+jB2c43hYuKqMTub4PvoaslNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753847326; a=rsa-sha256; cv=none; b=ijGh9xKQanCDzPxEt9mRPnQZta8xR9T8xBUDHR/GLzB4cvAy/wRNiahYzUqw7xJqvBoz/K cynVfbrjREL8A9aRzFgkZlEzk6h1N6B/coGQ65EYVSEi+6fOSbClBF/svF2h0xlDRLh5Lg A9BNQkElaKJw3MMoXxrrHaTlw+gAgagHkyxk4A+NZOgE0HK+x2rS6N/MN1k2mixRf6TOHZ CbHP8KC07H1s1JSwlWhM4RlIr+A/9aeXr/3QKU4+fviE6mfrZfcPunmDGuxaYJESEsombj eJerxTo/6uwMLhnj5Td9Jm4Xfjo+eaehFtQ7XAbaFp5BC9QME03dfIPiQJlMZg== 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 4bsJ9B3jZQz110t; Wed, 30 Jul 2025 03:48:46 +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 56U3mk3Q030329; Wed, 30 Jul 2025 03:48:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56U3mkop030326; Wed, 30 Jul 2025 03:48:46 GMT (envelope-from git) Date: Wed, 30 Jul 2025 03:48:46 GMT Message-Id: <202507300348.56U3mkop030326@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 7fc218b30b80 - main - find: Put back clearing the NOSTAT bit 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7fc218b30b809559e16ce4709c4c4b071056c306 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7fc218b30b809559e16ce4709c4c4b071056c306 commit 7fc218b30b809559e16ce4709c4c4b071056c306 Author: Warner Losh AuthorDate: 2025-07-29 19:17:50 +0000 Commit: Warner Losh CommitDate: 2025-07-30 03:47:55 +0000 find: Put back clearing the NOSTAT bit In fd186cd16eaf I read the condition backwards. We want to stat all the time until we can implement something to do it more inteligently as Jiles suggested in the review. Fixes: fd186cd16eaf Noticed by: des Sponsored by: Netflix --- usr.bin/find/function.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index 11455b395022..b260a71ef4a9 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1449,11 +1449,12 @@ c_printf(OPTION *option, char ***argvp) { PLAN *new; - isoutput = 1; /* * XXX We could scan the format looking for stat-dependent formats, and - * turn off the stat if there's none: `%p`/`%f`/`%h` don't need a stat. + * turn off the nostat bit for trival cases: `%p`/`%f`/`%h`. */ + isoutput = 1; + ftsoptions &= ~FTS_NOSTAT; new = palloc(option); new->c_data = nextarg(option, argvp);