SFTP batch mode patch
Damien Miller
djm at mindrot.org
Mon Feb 21 09:57:12 EST 2005
Jeremy Monin wrote:
> Hi,
>
> We do a lot of automated file transfers with SFTP, and found this small
> patch very helpful. The main effect is to tell the underlying SSH client
> that it's operating in batch mode. Patch is against 3.9p1.
Thanks, the first part of the patch has been applied and will be in
the next release.
> diff -ur openssh-3.9p1-orig\sftp.c openssh-3.9p1\sftp.c
> --- openssh-3.9p1-orig\sftp.c Sat Jul 17 02:12:08 2004
> +++ openssh-3.9p1\sftp.c Thu Oct 14 11:39:40 2004
> @@ -1420,6 +1420,7 @@
> fatal("%s (%s).", strerror(errno), optarg);
> showprogress = 0;
> batchmode = 1;
> + addargs(&args, "-obatchmode yes");
> break;
> case 'P':
> sftp_direct = optarg;
Regards,
Damien Miller
More information about the openssh-unix-dev
mailing list