From b8a55117f91a814b4b3c948e4b25b9685b6d7b76 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Tue, 20 Jul 2021 13:14:32 +0200 Subject: [PATCH] Gracefully handle smb acls for users without a domain Signed-off-by: Richard Steinmetz --- apps/files_external/lib/Lib/Storage/SMB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index 5bb441d0077..646ba53313a 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -219,7 +219,7 @@ class SMB extends Common implements INotifyStorage { private function getACL(IFileInfo $file): ?ACL { $acls = $file->getAcls(); foreach ($acls as $user => $acl) { - [, $user] = explode('\\', $user); // strip domain + [, $user] = $this->splitUser($user); // strip domain if ($user === $this->server->getAuth()->getUsername()) { return $acl; } -- 2.39.5