diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-06-23 10:07:49 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-06-25 01:18:47 -0400 |
commit | c8f7eca0eb6327e8b8ea066af55183a135818fe1 (patch) | |
tree | cffd779c202fe52cfe0b603372a33b77721214c9 /bftw.c | |
parent | 8d393a4e1a37a78bccb3928379693529f78ff20e (diff) | |
download | bfs-c8f7eca0eb6327e8b8ea066af55183a135818fe1.tar.xz |
util: Filter out . and .. in xreaddir()
Diffstat (limited to 'bftw.c')
-rw-r--r-- | bftw.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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: |