Commit 2d489a94 authored by Björn Schießle's avatar Björn Schießle
Browse files

Merge pull request #2797 from owncloud/fixing-2792-master

fixes #2792 - only touch if writable
parents 5bb248ef d069ee8a
......@@ -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 );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment