Merge pull request #5889 from owncloud/extstorage-smb-brokenfseek

Fix for smb4php fseek
This commit is contained in:
Frank Karlitschek 2013-11-15 07:00:36 -08:00
commit fa44c699f7
1 changed files with 2 additions and 1 deletions

View File

@ -460,7 +460,8 @@ class smb_stream_wrapper extends smb {
function stream_tell () { return ftell($this->stream); }
function stream_seek ($offset, $whence=null) { return fseek($this->stream, $offset, $whence); }
// PATCH: the wrapper must return true when fseek succeeded by returning 0.
function stream_seek ($offset, $whence=null) { return fseek($this->stream, $offset, $whence) === 0; }
function stream_flush () {
if ($this->mode <> 'r' && $this->need_flush) {