mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 11:54:04 +00:00
Sync OpenBSD patchset 940:
Do not require a client here, or pipe-pane will not work from the command line.
This commit is contained in:
parent
8aec4c93eb
commit
2589d117b0
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue