mirror of
https://github.com/upa/mscp.git
synced 2026-02-28 03:24:41 +08:00
fix a signifiant bug
This commit is contained in:
@@ -601,7 +601,7 @@ static int chunk_copy_local_to_remote(struct chunk *c, sftp_session sftp, size_t
|
|||||||
|
|
||||||
flags = O_WRONLY|O_CREAT;
|
flags = O_WRONLY|O_CREAT;
|
||||||
mode = S_IRUSR|S_IWUSR;
|
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;
|
ret = -1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user