Skip to content

Commit

Permalink
Merge pull request #16195 from nextcloud/bugfix/7556/smb-symlink-shar…
Browse files Browse the repository at this point in the history
…e-mtime

Ignore forbidden exception when fetching share mtime on SMB for symlinks
  • Loading branch information
rullzer authored Jul 9, 2019
2 parents 6cfe29b + adc2ab4 commit e94bbfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/files_external/lib/Lib/Storage/SMB.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ private function shareMTime() {
}
} catch (NotFoundException $e) {
// Ignore this, can happen on unavailable DFS shares
} catch (ForbiddenException $e) {
// Ignore this too - it's a symlink
}
}
return $highestMTime;
Expand Down

0 comments on commit e94bbfc

Please sign in to comment.