summaryrefslogtreecommitdiffstats
path: root/bftw.c
diff options
context:
space:
mode:
Diffstat (limited to 'bftw.c')
-rw-r--r--bftw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bftw.c b/bftw.c
index eb4f0c0..70826ea 100644
--- a/bftw.c
+++ b/bftw.c
@@ -755,6 +755,7 @@ static size_t basename_offset(const char *path) {
static void bftw_init_buffers(struct bftw_state *state, const struct dirent *de) {
struct BFTW *ftwbuf = &state->ftwbuf;
ftwbuf->path = state->path;
+ ftwbuf->root = state->root;
ftwbuf->error = 0;
ftwbuf->visit = (state->status == BFTW_GC ? BFTW_POST : BFTW_PRE);
ftwbuf->statbuf = NULL;