summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-02 13:53:44 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-07-08 21:43:24 +0200
commitadc2ab4bb2b6ab4f860ca1b5030994c6ad55dd59 (patch)
tree157d146c633dae4dbf97d15922e580f04b8817f5 /apps/files_external
parent3d69f03a6de949553a1fb10b4a54c8ef9689f971 (diff)
downloadnextcloud-server-adc2ab4bb2b6ab4f860ca1b5030994c6ad55dd59.tar.gz
nextcloud-server-adc2ab4bb2b6ab4f860ca1b5030994c6ad55dd59.zip
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 <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 0d8c10b316b..bff23160944 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;