aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-08-04 17:04:08 +0000
committerTiago Cunha <tcunha@gmx.com>2011-08-04 17:04:08 +0000
commit2589d117b0b48baefcb39ed3403481eaa24877e8 (patch)
tree07e4edb7910558f6f4b04e396bffbc4fd8b3da7a
parent8aec4c93eb59313ad59044ba1ad6e5b5b0626a12 (diff)
downloadrtmux-2589d117b0b48baefcb39ed3403481eaa24877e8.tar.gz
rtmux-2589d117b0b48baefcb39ed3403481eaa24877e8.tar.bz2
rtmux-2589d117b0b48baefcb39ed3403481eaa24877e8.zip
Sync OpenBSD patchset 940:
Do not require a client here, or pipe-pane will not work from the command line.
-rw-r--r--cmd-pipe-pane.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c
index 5f7ee3c8..71d1e86b 100644
--- a/cmd-pipe-pane.c
+++ b/cmd-pipe-pane.c
@@ -54,11 +54,9 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
char *command;
int old_fd, pipe_fd[2], null_fd;
- if ((c = cmd_find_client(ctx, NULL)) == NULL)
- return (-1);
-
if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL)
return (-1);
+ c = cmd_find_client(ctx, NULL);
/* Destroy the old pipe. */
old_fd = wp->pipe_fd;