diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-13 13:09:35 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-11-13 13:09:35 -0500 |
commit | 32daab769e4c0902255d9e55843eb94c66d7cb33 (patch) | |
tree | 1f7deb2cc74bd2f4f8f8d7d9af87dc89ad8567ef /src/eval.c | |
parent | 0733f4338ff409727f0a032b0f01268db45ebaf3 (diff) | |
download | bfs-32daab769e4c0902255d9e55843eb94c66d7cb33.tar.xz |
eval: Remove Cosmopolitan-specific workaround
Turns out this is not specific to Cosmopolitan, it's a recent Linux
behaviour change.
Link: https://lore.kernel.org/linux-fsdevel/20231113180616.2831430-1-tavianator@tavianator.com/
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1558,9 +1558,7 @@ static const char *dump_bftw_strategy(enum bftw_strategy strategy) { /** Check if we need to enable BFTW_BUFFER. */ static bool eval_must_buffer(const struct bfs_expr *expr) { -#if __COSMOPOLITAN__ - return true; -#elif __FreeBSD__ +#if __FreeBSD__ // FreeBSD doesn't properly handle adding/removing directory entries // during readdir() on NFS mounts. Work around it by passing BFTW_BUFFER // whenever we could be mutating the directory ourselves through -delete |