From 5c768f980e3936343dc9de13b4d1b303d2ed5443 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 9 Jun 2022 19:21:56 +0200 Subject: fix mounts mounted at the users home this fixes external storages with '/' as mountpoint Signed-off-by: Robin Appelman --- lib/private/Files/SetupManager.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index 040ba6b898f..629ed6f1bf0 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -380,13 +380,9 @@ class SetupManager { return; } - // for the user's home folder, it's always the home mount - if (rtrim($path) === "/" . $user->getUID() . "/files") { - if ($includeChildren) { - $this->setupForUser($user); - } else { - $this->oneTimeUserSetup($user); - } + // for the user's home folder, and includes children we need everything always + if (rtrim($path) === "/" . $user->getUID() . "/files" && $includeChildren) { + $this->setupForUser($user); return; } -- cgit v1.2.3