summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-02-12 12:24:52 +0000
committernicm <nicm@openbsd.org>2016-02-12 12:24:52 +0000
commitf6788988b1883938e0000a279e38bb04a1d8d1bd (patch)
tree65d7d5fbefa70eac2cd5eb65b83608a5a251abf6 /usr.bin/tmux/cmd-run-shell.c
parentCall daemon(3) later, to catch errors from getpwnam and others. (diff)
downloadwireguard-openbsd-f6788988b1883938e0000a279e38bb04a1d8d1bd.tar.xz
wireguard-openbsd-f6788988b1883938e0000a279e38bb04a1d8d1bd.zip
Expand client formats in run-shell.
Diffstat (limited to 'usr.bin/tmux/cmd-run-shell.c')
-rw-r--r--usr.bin/tmux/cmd-run-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c
index e477ca43f7b..31c5ee836c0 100644
--- a/usr.bin/tmux/cmd-run-shell.c
+++ b/usr.bin/tmux/cmd-run-shell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-run-shell.c,v 1.35 2015/12/14 00:31:54 nicm Exp $ */
+/* $OpenBSD: cmd-run-shell.c,v 1.36 2016/02/12 12:24:52 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -93,7 +93,7 @@ cmd_run_shell_exec(struct cmd *self, struct cmd_q *cmdq)
else
cwd = NULL;
ft = format_create(cmdq, 0);
- format_defaults(ft, NULL, s, wl, wp);
+ format_defaults(ft, cmdq->state.c, s, wl, wp);
shellcmd = format_expand(ft, args->argv[0]);
format_free(ft);