]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: scp: do not spawn ssh with two -s flags for
authornaddy@openbsd.org <naddy@openbsd.org>
Wed, 11 Aug 2021 14:05:19 +0000 (14:05 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 12 Aug 2021 13:03:13 +0000 (23:03 +1000)
commit49f46f6d77328a3d10a758522b670a3e8c2235e7
treea124ec9ad799a309c362eaed27671c5d2224156e
parent2a2cd00783e1da45ee730b7f453408af1358ef5b
upstream: scp: do not spawn ssh with two -s flags for

remote-to-remote copies

Do not add another "-s" to the argument vector every time an SFTP
connection is initiated.  Instead, introduce a subsystem flag to
do_cmd() and add "-s" when the flag is set.

ok djm@

OpenBSD-Commit-ID: 25df69759f323661d31b2e1e790faa22e27966c1
scp.c