diff cli-chansession.c @ 497:ae600f1eef81

- Enable -s for specifying a subsystem (such as sftp)
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Sep 2008 15:57:26 +0000
parents 12d845ab7b5f
children c3f2ec71e3d4
line wrap: on
line diff
--- a/cli-chansession.c	Tue Sep 23 12:03:01 2008 +0000
+++ b/cli-chansession.c	Tue Sep 23 15:57:26 2008 +0000
@@ -321,7 +321,11 @@
 	TRACE(("enter send_chansess_shell_req"))
 
 	if (cli_opts.cmd) {
-		reqtype = "exec";
+		if (cli_opts.is_subsystem) {
+			reqtype = "subsystem";
+		} else {
+			reqtype = "exec";
+		}
 	} else {
 		reqtype = "shell";
 	}