summaryrefslogtreecommitdiff
path: root/core/exec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/exec.zig')
-rw-r--r--core/exec.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/exec.zig b/core/exec.zig
index 197827bb..36879b70 100644
--- a/core/exec.zig
+++ b/core/exec.zig
@@ -418,7 +418,7 @@ fn refusedPlacement(p: *Pardes, id: usize) bool {
/// Whether a shell would be started in `dir` and `dir` is not there: asked
/// only of a host that starts shells, and only of a local path.
pub fn missingDir(p: *Pardes, dir: []const u8) bool {
- if (p.host.vtable.spawn == null) return false;
+ if (!p.tape.has(p, .spawn)) return false;
// A peer's directory (`/n/peer/x`) is no directory on this host, where
// the shell would start: no command or terminal runs there, and none
// is made to say `exit 127`.