Skip to content
Snippets Groups Projects
Commit b89b22e2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Open files in binary mode

This explains the extra calls to record_transfer() on Windows SFTP server

I do wonder if we should be usign sopen() or nopen() here instead though.
parent b48ed108
No related branches found
No related tags found
No related merge requests found
Pipeline #6049 passed
......@@ -1310,7 +1310,7 @@ sftp_open(sftp_str_t filename, uint32_t flags, sftp_file_attr_t attributes, void
constexpr size_t nfdes = sizeof(sbbs->sftp_filedes) / sizeof(sbbs->sftp_filedes[0]);
unsigned fdidx;
mode_t omode = 0;
int oflags = 0;
int oflags = O_BINARY;
sftp_str_t handle;
bool ret;
map_path_mode_t mmode;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment