diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-01-14 16:38:08 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-02-05 19:02:25 -0500 |
commit | a6f94c132c425bbab543e98fcd19f4ff7519d1b7 (patch) | |
tree | 215135837c0335946b70593877ec5411ba8e6c17 /bftw.c | |
parent | 9f1863d45fe596e258596a4b4cc9a4064bcb11d3 (diff) | |
download | bfs-a6f94c132c425bbab543e98fcd19f4ff7519d1b7.tar.xz |
Implement -printf/-fprintf
Based on a patch by Fangrui Song <i@maskray.me>.
Closes #16.
Diffstat (limited to 'bftw.c')
-rw-r--r-- | bftw.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |