Roberto A. Foglietta wrote:
Hi to all folks,

 I develop this patch in order to avoid -s usage when

 sftp -s /remote/path/sftp-server -S /local/path/dbclient

 now if -s is not specified a subsystem request would be sent

 Cheers,


 please use this one, the previous was not applying cleanly to 0.50

 Cheers,
/Roberto

--- dropbear-0.50/cli-chansession.c	2007-08-08 17:39:36.000000000 +0200
+++ dropbear-0.50_raf/cli-chansession.c	2007-09-19 11:12:58.561243029 +0200
@@ -321,7 +321,11 @@ static void send_chansess_shell_req(stru
 	TRACE(("enter send_chansess_shell_req"))
 
 	if (cli_opts.cmd) {
+		if(!strncmp(cli_opts.cmd, "sftp", 4)) {
+			reqtype = "subsystem";
+		} else {
-		reqtype = "exec";
+ 			reqtype = "exec";
+		} 
 	} else {
 		reqtype = "shell";
 	}

Reply via email to