aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-11-15 18:43:12 -0800
committerNicholas <nbnoll@eml.cc>2021-11-15 18:43:12 -0800
commitd2c554ee0deeb64a805549d230ff8467ff6601f4 (patch)
tree1c0280afc72e707cb133b693048f98f59628c69c /src
parent0b8cebc1f074626f3c3e43a26152a3034ada7153 (diff)
Fix: Qsort had bad macro capture
Diffstat (limited to 'src')
-rw-r--r--src/base/fs/walk.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/base/fs/walk.c b/src/base/fs/walk.c
index d528896..8842633 100644
--- a/src/base/fs/walk.c
+++ b/src/base/fs/walk.c
@@ -57,25 +57,25 @@ fs·walk(fs·Walker *fs)
/* have we been here before? (cycle detection) */
/* if not, add to our path history */
- if (!(fs->flags & fs·nolinks)) {
+ if(!(fs->flags & fs·nolinks)){
addentry(fs->hist, (struct Key){.dev=cwd.st_dev, .ino=cwd.st_ino}, &new);
if (!new)
return;
}
- /*
+ /*
* operate on directory first if preorder traversal
* truncate recursion if callback returns an error code
- */
- if (fs->flags & fs·preorder) {
- if (fs->func(fs->data, fs->base, fs->path, &cwd))
+ */
+ if(fs->flags & fs·preorder){
+ if(fs->func(fs->data, fs->base, fs->path, &cwd))
return;
}
/* open directory */
if(!fs->max || fs->lev + 1 < fs->max) {
fd = openat(fs->fd, fs->base, O_RDONLY | O_CLOEXEC | O_DIRECTORY);
- if (fd < 0)
+ if(fd < 0)
errorf("open %s:", fs->path);
if (!(dir=fdopendir(fd))) {