aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-06-15 20:25:40 +0000
committerTiago Cunha <tcunha@gmx.com>2010-06-15 20:25:40 +0000
commite186450788a65c4f5fc30ad41177be5d9d8ec2bd (patch)
tree60c0198a0ee29c9d6de5808b745f82b2482c3471
parent3e8092709cc7e0ceea7baa1a976a04bf8f541f20 (diff)
downloadrtmux-e186450788a65c4f5fc30ad41177be5d9d8ec2bd.tar.gz
rtmux-e186450788a65c4f5fc30ad41177be5d9d8ec2bd.tar.bz2
rtmux-e186450788a65c4f5fc30ad41177be5d9d8ec2bd.zip
Sync OpenBSD patchset 720:
Last change erroneously used the target argument for looking up the client which caused pipe-pane to fail when used from the command line. Instead pass NULL which should use the current client. Spotted by Tiago Cunha.
-rw-r--r--cmd-pipe-pane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c
index 62d4f4f7..2e25b2de 100644
--- a/cmd-pipe-pane.c
+++ b/cmd-pipe-pane.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-pipe-pane.c,v 1.12 2010-06-06 00:28:00 tcunha Exp $ */
+/* $Id: cmd-pipe-pane.c,v 1.13 2010-06-15 20:25:40 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -55,7 +55,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
char *command;
int old_fd, pipe_fd[2], null_fd, mode;
- if ((c = cmd_find_client(ctx, data->target)) == NULL)
+ if ((c = cmd_find_client(ctx, NULL)) == NULL)
return (-1);
if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)