commit f1c90b3abf3e04e9d0850753242770022ccfd36d
parent 719ca7c9b8ff21e3d59136683d4d8f26a29f9c53
Author: triesap <tyson@radroots.org>
Date: Sun, 4 Oct 2026 00:35:26 +0000
repo: confine native alias fixtures to owned executable paths (HCR-007)
- Set executable bits only on generated dispatcher scripts
- Keep the system sed symlink outside permission mutations
- Verify the correction with non-root Linux Make execution
- Preserve alias equivalence and missing-tool regressions
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/test-build-modes.sh b/tools/test-build-modes.sh
@@ -168,6 +168,7 @@ case "$1" in
*) exit 92 ;;
esac
EOF
+chmod +x "$dispatch_bin/git"
cat > "$fixture/dispatch-tool" <<'EOF'
#!/bin/sh
tool=${0##*/}
@@ -195,12 +196,14 @@ esac
EOF
for tool in cargo java node npm pnpm npx corepack; do
cp "$fixture/dispatch-tool" "$dispatch_bin/$tool"
+ chmod +x "$dispatch_bin/$tool"
done
cp "$fixture/dispatch-tool" "$dispatch_root/gradlew"
+chmod +x "$dispatch_root/gradlew"
for tool in test-build-modes.sh verify-storage-api.sh; do
cp "$fixture/dispatch-tool" "$dispatch_root/tools/$tool"
+ chmod +x "$dispatch_root/tools/$tool"
done
-chmod +x "$dispatch_bin/"* "$dispatch_root/gradlew" "$dispatch_root/tools/"*
run_dispatch() {
dispatch_mode=$1