1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 16:49:42 +01:00

SFTP/Stream: make it so you can write past the end of a file

This commit is contained in:
terrafrost 2021-02-21 18:41:28 -06:00
parent 5bddb7b13f
commit d20e842a5e

View File

@ -428,7 +428,7 @@ class Net_SFTP_Stream
{ {
switch ($whence) { switch ($whence) {
case SEEK_SET: case SEEK_SET:
if ($offset >= $this->size || $offset < 0) { if ($offset < 0) {
return false; return false;
} }
break; break;