From: Thomas Mueller Date: Mon, 8 Apr 2013 20:22:49 +0000 (+0200) Subject: fixes #2792 - only touch if writable X-Git-Tag: v6.0.0alpha2~942^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d069ee8a8bce6a08d8b7921ad378c60af2a0439e;p=nextcloud-server.git fixes #2792 - only touch if writable --- 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{