mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
fix on copy handling
This commit is contained in:
@@ -613,7 +613,8 @@ static int chunk_copy_local_to_remote(struct chunk *c, sftp_session sftp, size_t
|
||||
ret = -1;
|
||||
goto out;
|
||||
}
|
||||
remaind2 -= ret;
|
||||
remaind2 -= ret2;
|
||||
c->done += ret2;
|
||||
}
|
||||
|
||||
remaind -= ret;
|
||||
@@ -672,7 +673,8 @@ static int chunk_copy_remote_to_local(struct chunk *c, sftp_session sftp, size_t
|
||||
ret = -1;
|
||||
goto out;
|
||||
}
|
||||
remaind2 -= ret;
|
||||
remaind2 -= ret2;
|
||||
c->done += ret2;
|
||||
}
|
||||
|
||||
remaind -= ret;
|
||||
|
||||
Reference in New Issue
Block a user