[Pkg-owncloud-commits] [owncloud] 119/258: return boolean in OC::stream_seek

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 2bdf5a8b1a408e45380f49d4bfc8d6d59b3d2191
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Sun Sep 21 22:48:35 2014 +0200

    return boolean in OC::stream_seek
---
 lib/private/files/stream/oc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/files/stream/oc.php b/lib/private/files/stream/oc.php
index c206b41..8c35316 100644
--- a/lib/private/files/stream/oc.php
+++ b/lib/private/files/stream/oc.php
@@ -48,7 +48,7 @@ class OC {
 	}
 
 	public function stream_seek($offset, $whence = SEEK_SET) {
-		fseek($this->fileSource, $offset, $whence);
+		return fseek($this->fileSource, $offset, $whence) === 0;
 	}
 
 	public function stream_tell() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list