Mercurial > dropbear
diff cli-agentfwd.c @ 1829:a7cc3332d8ab
Replace ChanType.sepfds with Channel.bidir_fd
This handles the case where a svrchansess has separate FDs
for nopty, but a single FD for pty mode.
The use of sepfds was also previously incorrect for X11 and
agent forwarding
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 11 Oct 2021 15:42:14 +0800 |
parents | a53e7d2d60be |
children |
line wrap: on
line diff
--- a/cli-agentfwd.c Mon Oct 11 15:16:54 2021 +0800 +++ b/cli-agentfwd.c Mon Oct 11 15:42:14 2021 +0800 @@ -47,7 +47,6 @@ static int new_agent_chan(struct Channel * channel); const struct ChanType cli_chan_agent = { - 0, /* sepfds */ "[email protected]", new_agent_chan, NULL, @@ -94,6 +93,7 @@ channel->readfd = fd; channel->writefd = fd; + channel->bidir_fd = 1; return 0; }