Mailing List Archive

[openssh] branch master updated (fbcef70c -> 56a0697f)
This is an automated email from the git hooks/post-receive script.

djm pushed a change to branch master
in repository openssh.

from fbcef70c upstream: Remove errant apostrophe. From haruyama at queen-ml org.
new 56a0697f upstream: arrange for scp, when in sftp mode, to not ftruncate(3) files

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Detailed log of new commits:

commit 56a0697fe079ff3e1ba30a2d5c26b5e45f7b71f8
Author: djm@openbsd.org <djm@openbsd.org>
Date: Fri May 13 06:31:50 2022 +0000

upstream: arrange for scp, when in sftp mode, to not ftruncate(3) files

early

previous behavious of unconditionally truncating the destination file
would cause "scp ~/foo localhost:" and "scp localhost:foo ~/" to
delete all the contents of their destination.

spotted by solene@ sthen@, also bz3431; ok dtucker@

OpenBSD-Commit-ID: ca39fdd39e0ec1466b9666f15cbcfddea6aaa179

Summary of changes:
scp.c | 10 ++++-----
sftp-client.c | 70 ++++++++++++++++++++++++++++++++++++++---------------------
sftp-client.h | 17 ++++++++-------
sftp.c | 10 ++++-----
4 files changed, 64 insertions(+), 43 deletions(-)

--
To stop receiving notification emails like this one, please contact
djm@mindrot.org.
_______________________________________________
openssh-commits mailing list
openssh-commits@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-commits