diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-10-23 16:04:50 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-10-23 16:04:50 +0900 |
commit | 77e977ce8e6ff78dced24f9c8a253a1b6d53115d (patch) | |
tree | db88e598b0f98f7efef7cf0509554547c2dcbfc1 | |
parent | b79e20e54d5be4e3a16f36ac0f866920552bab00 (diff) |
fix a signifiant bug
-rw-r--r-- | src/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |