git: 7fc218b30b80 - main - find: Put back clearing the NOSTAT bit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Jul 2025 03:48:46 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=7fc218b30b809559e16ce4709c4c4b071056c306
commit 7fc218b30b809559e16ce4709c4c4b071056c306
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-07-29 19:17:50 +0000
Commit: Warner Losh <imp@FreeBSD.org>
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);