]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixes #2792 - only touch if writable
authorThomas Mueller <thomas.mueller@tmit.eu>
Mon, 8 Apr 2013 20:22:49 +0000 (22:22 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Tue, 9 Apr 2013 08:52:06 +0000 (10:52 +0200)
lib/files/storage/local.php

index da6597c805772d8b5e6c26cc8976f7cd30aedb0a..0eca6003eaa056afba991de46eaabdf9330ea02a 100644 (file)
@@ -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{