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

Fix for smb4php fseek
remotes/origin/stable6
Frank Karlitschek 12 years ago
commit fa44c699f7
  1. 3
      apps/files_external/3rdparty/smb4php/smb.php

@ -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) {

Loading…
Cancel
Save