mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
SFTP: backport DavidAnderson684's changes to 1.0 branch
This commit is contained in:
parent
23db2f7be3
commit
e2a2ad8c91
@ -1917,10 +1917,12 @@ class Net_SFTP extends Net_SSH2
|
|||||||
|
|
||||||
if ($local_start >= 0) {
|
if ($local_start >= 0) {
|
||||||
fseek($fp, $local_start);
|
fseek($fp, $local_start);
|
||||||
|
$size-= $local_start;
|
||||||
} elseif ($mode & NET_SFTP_RESUME_START) {
|
} elseif ($mode & NET_SFTP_RESUME_START) {
|
||||||
// do nothing
|
// do nothing
|
||||||
} else {
|
} else {
|
||||||
fseek($fp, $offset);
|
fseek($fp, $offset);
|
||||||
|
$size-= $offset;
|
||||||
}
|
}
|
||||||
} elseif ($dataCallback) {
|
} elseif ($dataCallback) {
|
||||||
$size = 0;
|
$size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user