diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-06-11 20:25:34 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-06-15 10:09:23 -0400 |
commit | def4a832425bfe94b96b8cb1146a83552b754fb4 (patch) | |
tree | 936a643c54a83a5dbed0a8a56b28ab066187b5fa /tests | |
parent | a0fe051f8b2bcc919d67f822b674cdfe8cf1274b (diff) | |
download | bfs-def4a832425bfe94b96b8cb1146a83552b754fb4.tar.xz |
xspawn: Don't check xfaccess(..., X_OK) before fchdir()
Fixes: 8c130ca ("xspawn: Check X_OK even without $PATH resolution")
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gnu/execdir_self.out | 1 | ||||
-rw-r--r-- | tests/gnu/execdir_self.sh | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/gnu/execdir_self.out b/tests/gnu/execdir_self.out new file mode 100644 index 0000000..3ad0640 --- /dev/null +++ b/tests/gnu/execdir_self.out @@ -0,0 +1 @@ +./bar.sh diff --git a/tests/gnu/execdir_self.sh b/tests/gnu/execdir_self.sh new file mode 100644 index 0000000..1fc5d04 --- /dev/null +++ b/tests/gnu/execdir_self.sh @@ -0,0 +1,9 @@ +cd "$TEST" +mkdir foo +cat >foo/bar.sh <<EOF +#!/bin/sh +printf '%s\n' "\$@" +EOF +chmod +x foo/bar.sh + +bfs_diff . -name bar.sh -execdir {} {} \; |