summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-17 16:02:57 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-17 16:02:57 -0500
commitda02defb91c3a1bda0ea7e653d81f997f1c8884a (patch)
tree2b58212b064989b01c90d7d78fa00cedc9e4bec2 /src/eval.c
parent3604eeddb8a317c0745e92680d0405c645fbe247 (diff)
downloadbfs-da02defb91c3a1bda0ea7e653d81f997f1c8884a.tar.xz
expr: Don't use reftime for -ls
reftime is part of a different union than the print actions are supposed to use.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index dd147c9..4c9d807 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -708,7 +708,7 @@ bool eval_fls(const struct bfs_expr *expr, struct bfs_eval *state) {
}
time_t time = statbuf->mtime.tv_sec;
- time_t now = expr->reftime.tv_sec;
+ time_t now = ctx->now.tv_sec;
time_t six_months_ago = now - 6*30*24*60*60;
time_t tomorrow = now + 24*60*60;
struct tm tm;