summaryrefslogtreecommitdiffstats
path: root/exec.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-04-15 10:21:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-04-20 14:18:03 -0400
commita559ffac8c65f469adefcd2d4a5c41790d7e6d05 (patch)
treeb2bacf4764570d755362ea372804aa84188fc8c4 /exec.c
parent60020d1f52d032c495785802c44226a63a217737 (diff)
downloadbfs-a559ffac8c65f469adefcd2d4a5c41790d7e6d05.tar.xz
[WIP] bftw: Push all files onto the queue before visiting themqueue-files
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 3a35063..06703ad 100644
--- a/exec.c
+++ b/exec.c
@@ -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)) {