aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2013-04-09 01:50:05 -0700
committerBjörn Schießle <bjoern@schiessle.org>2013-04-09 01:50:05 -0700
commit2d489a94c68bef0d7336f03fa5ae496b2a823de7 (patch)
tree1cdfffe6c0c969d32499e3116c8beb7d25c97ad3 /lib
parent5bb248efd6ad65ca812b5bfc16c42983bafda77c (diff)
parentd069ee8a8bce6a08d8b7921ad378c60af2a0439e (diff)
downloadnextcloud-server-2d489a94c68bef0d7336f03fa5ae496b2a823de7.tar.gz
nextcloud-server-2d489a94c68bef0d7336f03fa5ae496b2a823de7.zip
Merge pull request #2797 from owncloud/fixing-2792-master
fixes #2792 - only touch if writable
Diffstat (limited to 'lib')
-rw-r--r--lib/files/storage/local.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/files/storage/local.php b/lib/files/storage/local.php
index 7b637a97059..c3a643fe980 100644
--- a/lib/files/storage/local.php
+++ b/lib/files/storage/local.php
@@ -95,6 +95,9 @@ class Local extends \OC\Files\Storage\Common{
// sets the modification time of the file to the given value.
// If mtime is nil the current time is set.
// note that the access time of the file always changes to the current time.
+ if(!$this->isUpdatable($path)) {
+ return false;
+ }
if(!is_null($mtime)) {
$result=touch( $this->datadir.$path, $mtime );
}else{