]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix mounts mounted at the users home 32797/head
authorRobin Appelman <robin@icewind.nl>
Thu, 9 Jun 2022 17:21:56 +0000 (19:21 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 9 Jun 2022 17:21:56 +0000 (19:21 +0200)
this fixes external storages with '/' as mountpoint

Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/SetupManager.php

index 040ba6b898f4e44aabaf2df8394f1057c8752a56..629ed6f1bf03ca8fec6406a475eef047a165f0b8 100644 (file)
@@ -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;
                }