From adc2ab4bb2b6ab4f860ca1b5030994c6ad55dd59 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 2 Jul 2019 13:53:44 +0200 Subject: [PATCH] Ignore forbidden exception when fetching share mtime on SMB for symlinks See https://github.com/nextcloud/server/pull/7556#issuecomment-499028026 Signed-off-by: Morris Jobke --- apps/files_external/lib/Lib/Storage/SMB.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index 0d8c10b316..bff2316094 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -302,6 +302,8 @@ class SMB extends Common implements INotifyStorage { } } catch (NotFoundException $e) { // Ignore this, can happen on unavailable DFS shares + } catch (ForbiddenException $e) { + // Ignore this too - it's a symlink } } return $highestMTime;