https://bugs.kde.org/show_bug.cgi?id=419999

Harald Sitter <sit...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |20.04.1
      Latest Commit|                            |https://commits.kde.org/kio
                   |                            |-extras/effb511c5b95ef14b5e
                   |                            |ca4ad982f98ac213890e3
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Harald Sitter <sit...@kde.org> ---
Git commit effb511c5b95ef14b5eca4ad982f98ac213890e3 by Harald Sitter.
Committed on 29/04/2020 at 13:25.
Pushed by sitter into branch 'master'.

sftp: successfully write files to proftpd servers

proftpd doesn't like zero size writes and returns with an error leading us
to assume that the write failed, when in fact it was fine eitherway because
we didn't write anything one way or the other.
so, instead just break out of the loop early. there's nothing lost by
us not doing that final EOF write since we don't need it from a protocol
POV.
the break occurs just before writing because preceding it is "spin-up" tech
opening the file and so forth. we need to have that run even when putting
a 0b file.

this successfully writes 0B, 1B, and 128M files both with partial markers
enabled and disabled to proftpd 1.3.6c
FIXED-IN: 20.04.1

M  +11   -0    sftp/kio_sftp.cpp

https://commits.kde.org/kio-extras/effb511c5b95ef14b5eca4ad982f98ac213890e3

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to