Parcourir la source

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

Ignore forbidden exception when fetching share mtime on SMB for symlinks
tags/v17.0.0beta1
Roeland Jago Douma il y a 4 ans
Parent
révision
e94bbfc582
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2
    0
      apps/files_external/lib/Lib/Storage/SMB.php

+ 2
- 0
apps/files_external/lib/Lib/Storage/SMB.php Voir le fichier

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

Chargement…
Annuler
Enregistrer