fix a signifiant bug

This commit is contained in:
Ryo Nakamura
2022-10-23 16:04:50 +09:00
parent b79e20e54d
commit 77e977ce8e

View File

@@ -601,7 +601,7 @@ static int chunk_copy_local_to_remote(struct chunk *c, sftp_session sftp, size_t
flags = O_WRONLY|O_CREAT;
mode = S_IRUSR|S_IWUSR;
if (!(sf = chunk_open_remote(f->dst_path, mode, flags, c->off, sftp))) {
if (!(sf = chunk_open_remote(f->dst_path, flags, mode, c->off, sftp))) {
ret = -1;
goto out;
}