summaryrefslogtreecommitdiff
path: root/src/ninep/ctl.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 09:07:10 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit44aa1ff5bf19b4020e9b4600e5286dea35a3ba5c (patch)
treef17c7ee8dd46e126b1a0fc1df5b05129e1e5d8e6 /src/ninep/ctl.zig
parent7b727114350030fa34281803cc12a1dbb7e6f7fc (diff)
downloadpardes-44aa1ff5bf19b4020e9b4600e5286dea35a3ba5c.tar.gz
pardes-44aa1ff5bf19b4020e9b4600e5286dea35a3ba5c.zip
A pane's word written to /tagexec or a column's exec is refused, not done at the focused pane
Undo, Msg and the other pane words written to a tag no pane owns ran at whichever pane had the keyboard. They are refused as the root's ctl refuses them, EINVAL; the tag's own words (a column's New, Tty, Find, Grep) still run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep/ctl.zig')
-rw-r--r--src/ninep/ctl.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index 9cf97efc..eea033ed 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -365,7 +365,7 @@ fn refuse(p: *Pardes, req: Req, why: []const u8, line: []const u8) Reply {
}
/// `refuse`, saying which ctl takes the message instead.
-fn refuseTo(p: *Pardes, req: Req, why: []const u8, line: []const u8, ctl: []const u8) Reply {
+pub fn refuseTo(p: *Pardes, req: Req, why: []const u8, line: []const u8, ctl: []const u8) Reply {
const room = p.fs.ename.len -| (why.len + ctl.len + 18);
const text = std.fmt.bufPrint(&p.fs.ename, "{s} \"{s}\": write it to {s}", .{ why, line[0..@min(line.len, room)], ctl }) catch why;
return tree.failText(req.tag, E.INVAL, text);