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>
This commit is contained in:
Morris Jobke 2019-07-02 13:53:44 +02:00 committed by Roeland Jago Douma
parent 3d69f03a6d
commit adc2ab4bb2
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,8 @@ class SMB extends Common implements INotifyStorage {
} }
} catch (NotFoundException $e) { } catch (NotFoundException $e) {
// Ignore this, can happen on unavailable DFS shares // Ignore this, can happen on unavailable DFS shares
} catch (ForbiddenException $e) {
// Ignore this too - it's a symlink
} }
} }
return $highestMTime; return $highestMTime;