summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-31 19:51:51 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-31 19:51:51 -0500
commita726c7128ab5c6fffeb6844f3d819ada0369e6a8 (patch)
tree49475d7f740fbd25153bbaa84ffeb17a0fae07d9
parent8ecd1dc4a60e063251963305b98888236b8d9825 (diff)
downloadbfs-a726c7128ab5c6fffeb6844f3d819ada0369e6a8.tar.xz
opt: Charge eval_flags() for a stat() call
-rw-r--r--src/opt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opt.c b/src/opt.c
index 7203c61..28a2255 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -1218,6 +1218,7 @@ static struct bfs_expr *annotate_visit(struct bfs_opt *opt, struct bfs_expr *exp
{eval_acl, STAT_COST},
{eval_capable, STAT_COST},
{eval_empty, 2 * STAT_COST}, // readdir() is worse than stat()
+ {eval_flags, STAT_COST},
{eval_fls, PRINT_COST},
{eval_fprint, PRINT_COST},
{eval_fprint0, PRINT_COST},