fix: remove unused _writableRoots arg to exec() function (#762)

I suspect this was done originally so that `execForSandbox()` had a
consistent signature for both the `SandboxType.NONE` and
`SandboxType.MACOS_SEATBELT` cases, but that is not really necessary and
turns out to make the upcoming Landlock support a bit more complicated
to implement, so I had Codex remove it and clean up the call sites.
This commit is contained in:
Michael Bolin
2025-04-30 14:08:27 -07:00
committed by GitHub
parent e6fe8d6fa1
commit 033d379eca
6 changed files with 11 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ describe("rawExec invalid command handling", () => {
it("resolves with nonzero exit code when executable is missing", async () => {
const cmd = ["definitely-not-a-command-1234567890"];
const result = await rawExec(cmd, {}, []);
const result = await rawExec(cmd, {});
expect(result.exitCode).not.toBe(0);
expect(result.stderr.length).toBeGreaterThan(0);