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:
parent
3d69f03a6d
commit
adc2ab4bb2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue