summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-11-15 07:00:36 -0800
committerFrank Karlitschek <frank@owncloud.org>2013-11-15 07:00:36 -0800
commitfa44c699f717e115638884b442874168badda5f7 (patch)
tree633e970fb0c07e59cd31cc0068e795fdd0416007 /apps
parent630e46f60a7ac43815d14dd3d224de8ae3038465 (diff)
parentf9a64d2b2755ba2d63677c0d9846e87790292d4c (diff)
downloadnextcloud-server-fa44c699f717e115638884b442874168badda5f7.tar.gz
nextcloud-server-fa44c699f717e115638884b442874168badda5f7.zip
Merge pull request #5889 from owncloud/extstorage-smb-brokenfseek
Fix for smb4php fseek
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/3rdparty/smb4php/smb.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/3rdparty/smb4php/smb.php b/apps/files_external/3rdparty/smb4php/smb.php
index e91b0a59581..1a6cd05590c 100644
--- a/apps/files_external/3rdparty/smb4php/smb.php
+++ b/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) {