summaryrefslogtreecommitdiff
path: root/core/ninep/pty.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/ninep/pty.zig')
-rw-r--r--core/ninep/pty.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ninep/pty.zig b/core/ninep/pty.zig
index 26bb7661..938f3366 100644
--- a/core/ninep/pty.zig
+++ b/core/ninep/pty.zig
@@ -66,7 +66,7 @@ pub fn writeCtl(p: *Pardes, req: Req, id: usize) Reply {
// interpreter is not: refused, and the running shell kept.
const bin = pane.shell orelse p.shellBin();
var why: [320]u8 = undefined;
- if (pardes.tape.site(.shell, null, @import("dev").host_io.Shell.refusal, .{ bin[0..@min(bin.len, 200)], &why })) |refused|
+ if (p.tape.site(.shell, null, @import("dev").host_io.Shell.refusal, .{ bin[0..@min(bin.len, 200)], &why })) |refused|
return tree.failText(req.tag, E.NOENT, std.fmt.bufPrint(&p.fs.ename, "exec: {s}", .{refused[0..@min(refused.len, 300)]}) catch &p.fs.ename); // cut to ename's 320
};
if (verb(p, id, line, apply)) |why| return tree.failText(req.tag, E.INVAL, why);