From b1b745c052001810399ddf2aee763a03c98b1ea3 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 11 Aug 2014 17:05:35 +0200 Subject: [PATCH] Do not filemtime() on "." directory. Use empty string instead Fix #9928 --- lib/private/files/cache/updater.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php index 8bfa5fc74ca..4b70acbbead 100644 --- a/lib/private/files/cache/updater.php +++ b/lib/private/files/cache/updater.php @@ -180,6 +180,11 @@ class Updater { $cache = $storage->getCache(); $parentId = $cache->getParentId($internalPath); $parent = dirname($internalPath); + + if ($parent === '.' || $parent === '/' || $parent === '\\') { + $parent = ''; + } + if ($parentId != -1) { $cache->update($parentId, array('storage_mtime' => $storage->filemtime($parent))); } -- 2.39.5