ssh: add support for subsystems

This commit is contained in:
aiju 2017-04-28 15:41:39 +00:00
parent 522f08e5f1
commit 2a920e7361

View file

@ -1286,6 +1286,12 @@ Next1: switch(recvpkt()){
send.chan,
"shell", 5,
0);
} else if(*cmd == '#') {
sendpkt("busbs", MSG_CHANNEL_REQUEST,
send.chan,
"subsystem", 9,
0,
cmd+1, strlen(cmd)-1);
} else {
sendpkt("busbs", MSG_CHANNEL_REQUEST,
send.chan,