Merge pull request #16195 from nextcloud/bugfix/7556/smb-symlink-share-mtime

Ignore forbidden exception when fetching share mtime on SMB for symlinks
This commit is contained in:
Roeland Jago Douma 2019-07-09 08:51:12 +02:00 committed by GitHub
commit e94bbfc582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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;