summaryrefslogtreecommitdiffstats
path: root/cmd-detach-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-02-06 22:55:31 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-02-06 22:55:31 +0000
commitbb53c20c1882cbc909d4fe2ae3c6ad665da6abf6 (patch)
tree345afb7897f7639b2c8981674e064d976f68ab57 /cmd-detach-client.c
parent0a86d3579edb44ee559cfe6498f43d6637a08bd9 (diff)
Support attaching a client read-only with a new -r flag to the attach-session
command.
Diffstat (limited to 'cmd-detach-client.c')
-rw-r--r--cmd-detach-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-detach-client.c b/cmd-detach-client.c
index 4903281f..a2288036 100644
--- a/cmd-detach-client.c
+++ b/cmd-detach-client.c
@@ -29,7 +29,7 @@ int cmd_detach_client_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_detach_client_entry = {
"detach-client", "detach",
CMD_TARGET_CLIENT_USAGE,
- 0, "",
+ CMD_READONLY, "",
cmd_target_init,
cmd_target_parse,
cmd_detach_client_exec,