summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-03-07 22:12:46 -0800
committerTavian Barnes <tavianator@tavianator.com>2019-03-07 22:13:10 -0800
commitaafdd8eead6b5856b9adecdbcec86acc194b8af0 (patch)
tree91bf8afb2474efeed893ea35ab33847072c58f92 /eval.c
parent0689a4a16f5e80e0c2368f4a68c69ce5f2fdc038 (diff)
downloadbfs-aafdd8eead6b5856b9adecdbcec86acc194b8af0.tar.xz
eval: Fix -unique with -depth
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index bb89401..341b289 100644
--- a/eval.c
+++ b/eval.c
@@ -1256,7 +1256,7 @@ static enum bftw_action cmdline_callback(struct BFTW *ftwbuf, void *ptr) {
goto done;
}
- if (cmdline->unique) {
+ if (cmdline->unique && ftwbuf->visit == BFTW_PRE) {
if (!eval_file_unique(&state, args->seen)) {
goto done;
}