summaryrefslogtreecommitdiffstats
path: root/cmd-source-file.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-04-12 12:44:31 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-04-12 12:44:31 +0000
commitcaa8290510244990b26106e027aa253237ada629 (patch)
tree91e4e458705f91d6f0b3531603552f3ef31b5375 /cmd-source-file.c
parent7f9b225cc269211b86a4c4d2168146c217d63118 (diff)
Copy the client into the new cmdq in source-file so commands that work
on it (such as new-session) can work. Fixes issue reported by oss-adv at users dot sf dot net.
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r--cmd-source-file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c
index 1bd2bb0a..f50efbe3 100644
--- a/cmd-source-file.c
+++ b/cmd-source-file.c
@@ -49,6 +49,7 @@ cmd_source_file_exec(struct cmd *self, struct cmd_q *cmdq)
char *cause;
cmdq1 = cmdq_new(NULL);
+ cmdq1->client = cmdq->client;
cmdq1->emptyfn = cmd_source_file_done;
cmdq1->data = cmdq;