diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-04-15 10:21:22 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-04-20 14:18:03 -0400 |
commit | a559ffac8c65f469adefcd2d4a5c41790d7e6d05 (patch) | |
tree | b2bacf4764570d755362ea372804aa84188fc8c4 /exec.c | |
parent | 60020d1f52d032c495785802c44226a63a217737 (diff) | |
download | bfs-a559ffac8c65f469adefcd2d4a5c41790d7e6d05.tar.xz |
[WIP] bftw: Push all files onto the queue before visiting themqueue-files
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -265,6 +265,7 @@ static int bfs_exec_openwd(struct bfs_exec *execbuf, const struct BFTW *ftwbuf) assert(execbuf->wd_fd < 0); assert(!execbuf->wd_path); + assert(ftwbuf->depth == 0 || ftwbuf->at_path == xbasename(ftwbuf->path)); if (ftwbuf->at_fd != AT_FDCWD) { execbuf->wd_fd = ftwbuf->at_fd; if (!(execbuf->flags & BFS_EXEC_MULTI)) { |