mirror of
https://github.com/curl/curl.git
synced 2026-04-13 00:31:41 +08:00
Opening the remote file with O_APPEND while attempting to resume causes all writes to be forced to EOF on servers/implementations where O_APPEND semantics override a prior seek(). As a result, sftp_seek64() is ignored and the resumed data is appended, duplicating/corrupting the file. Fix by: - Using O_WRONLY (without O_APPEND) when resume_from > 0. - Skipping the seek entirely if remote_append mode is requested. Closes #18952 |
||
|---|---|---|
| .. | ||
| curl_path.c | ||
| curl_path.h | ||
| libssh2.c | ||
| libssh.c | ||
| ssh.h | ||