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) {
case SEEK_SET:
if ($offset >= $this->size || $offset < 0) {
if ($offset < 0) {
return false;
}
break;