2007/12/22, Roberto A. Foglietta <[EMAIL PROTECTED]>:
> 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
> >
>
> please use this one, the previous was not applying cleanly to 0.50
>
Sorry for posting again but I see dropbear 0.51 is out and nothing
changed about sftp request (cfr. attached patch). Sombody would like
comment this patch? Is there something wrong in it and/or in the way I
use sftp?
Thanks in advance,
--
/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";
}