summaryrefslogtreecommitdiffstats
path: root/bftw.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-06-23 10:07:49 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-06-25 01:18:47 -0400
commitc8f7eca0eb6327e8b8ea066af55183a135818fe1 (patch)
treecffd779c202fe52cfe0b603372a33b77721214c9 /bftw.c
parent8d393a4e1a37a78bccb3928379693529f78ff20e (diff)
downloadbfs-c8f7eca0eb6327e8b8ea066af55183a135818fe1.tar.xz
util: Filter out . and .. in xreaddir()
Diffstat (limited to 'bftw.c')
-rw-r--r--bftw.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bftw.c b/bftw.c
index 6772408..4c0ac63 100644
--- a/bftw.c
+++ b/bftw.c
@@ -1259,9 +1259,6 @@ start:
while (bftw_reader_read(reader) > 0) {
const char *name = reader->de->d_name;
- if (name[0] == '.' && (name[1] == '\0' || (name[1] == '.' && name[2] == '\0'))) {
- continue;
- }
switch (bftw_visit(&state, reader->dir, name, BFTW_PRE)) {
case BFTW_CONTINUE: