diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-06-16 09:32:44 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-06-16 09:32:44 -0400 |
commit | c5becba7c522962cf3f0f8b6e02a771b217b26a2 (patch) | |
tree | ad7defbf00a742f6fca47454c568e915cc57fb04 | |
parent | ec3bd778daf46c81642c80f80cd0405762412332 (diff) | |
download | bfs-main.tar.xz |
-rw-r--r-- | src/xspawn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xspawn.c b/src/xspawn.c index cf31cc9..ee62c05 100644 --- a/src/xspawn.c +++ b/src/xspawn.c @@ -246,8 +246,8 @@ int bfs_spawn_addfchdir(struct bfs_spawn *ctx, int fd) { #if __APPLE__ // macOS has a bug that causes EBADF when an fchdir() action refers to a // file opened by the file actions - for_slist (struct bfs_spawn_action, action, ctx) { - if (fd == action->out_fd) { + for_slist (struct bfs_spawn_action, prev, ctx) { + if (fd == prev->out_fd) { bfs_spawn_clear_posix(ctx); break; } |