Skip to content

Commit

Permalink
SFTP/Stream: make it so you can write past the end of a file
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Feb 22, 2021
1 parent 5bddb7b commit d20e842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/Net/SFTP/Stream.php
Expand Up @@ -428,7 +428,7 @@ function _stream_seek($offset, $whence)
{
switch ($whence) {
case SEEK_SET:
if ($offset >= $this->size || $offset < 0) {
if ($offset < 0) {
return false;
}
break;
Expand Down

1 comment on commit d20e842

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1618

Please sign in to comment.