mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
SFTP/Stream: make it so you can write past the end of a file
This commit is contained in:
parent
5bddb7b13f
commit
d20e842a5e
@ -428,7 +428,7 @@ class Net_SFTP_Stream
|
||||
{
|
||||
switch ($whence) {
|
||||
case SEEK_SET:
|
||||
if ($offset >= $this->size || $offset < 0) {
|
||||
if ($offset < 0) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user