diff options
-rw-r--r-- | lib/private/Files/Config/UserMountCache.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php index 4df8245cef2..9a5eddc4878 100644 --- a/lib/private/Files/Config/UserMountCache.php +++ b/lib/private/Files/Config/UserMountCache.php @@ -460,6 +460,8 @@ class UserMountCache implements IUserMountCache { $mounts = array_combine($mountPoints, $mounts); $current = $path; + // walk up the directory tree until we find a path that has a mountpoint set + // the loop will return if a mountpoint is found or break if none are found while (true) { $mountPoint = $current . '/'; if (isset($mounts[$mountPoint])) { |