fix in-place copies; r1.163 incorrectly skipped truncation in all cases,
authordjm <djm@openbsd.org>
Sun, 15 May 2022 23:47:21 +0000 (23:47 +0000)
committerdjm <djm@openbsd.org>
Sun, 15 May 2022 23:47:21 +0000 (23:47 +0000)
commitf12bc46b136052db709cd6861849d83c3e7b05a7
tree42808f727f21f8a766a03ed1c9bc8fa04f2b6803
parent9d7872c9260d753d53eecba50ba4a8b125caa78e
fix in-place copies; r1.163 incorrectly skipped truncation in all cases,
not just at the start of a transfer. This could cause overwrites of larger
files to leave junk at the end. Spotted by tb@
usr.bin/ssh/sftp-client.c