[Pkg-owncloud-commits] [php-sabredav] 56/163: Consider a delete only successfull when unlink() succeeds
David Prévot
taffit at moszumanska.debian.org
Tue May 20 18:54:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag upstream/2.0.0_beta1
in repository php-sabredav.
commit 0d603cc66ad6e9b70cab965c6c53430070beb4e2
Author: Markus Staab <markus.staab at redaxo.de>
Date: Sun Apr 13 15:23:54 2014 +0200
Consider a delete only successfull when unlink() succeeds
---
lib/Sabre/DAV/FSExt/File.php | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/Sabre/DAV/FSExt/File.php b/lib/Sabre/DAV/FSExt/File.php
index 88e0d4b..94fe791 100644
--- a/lib/Sabre/DAV/FSExt/File.php
+++ b/lib/Sabre/DAV/FSExt/File.php
@@ -68,9 +68,7 @@ class File extends Node implements DAV\PartialUpdate\IFile {
* @return bool
*/
public function delete() {
-
- unlink($this->path);
- return parent::delete();
+ return unlink($this->path) && parent::delete();
}
@@ -115,4 +113,3 @@ class File extends Node implements DAV\PartialUpdate\IFile {
}
}
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list