aboutsummaryrefslogtreecommitdiffstats
path: root/finder
diff options
context:
space:
mode:
Diffstat (limited to 'finder')
-rw-r--r--finder/finder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/finder/finder.go b/finder/finder.go
index ffda1558..2dd8e0b0 100644
--- a/finder/finder.go
+++ b/finder/finder.go
@@ -1181,7 +1181,7 @@ func (f *Finder) canIgnoreFsErr(err error) bool {
// Don't recognize this error
return false
}
- if pathErr.Err == os.ErrPermission {
+ if os.IsPermission(pathErr) {
// Permission errors are ignored:
// https://issuetracker.google.com/37553659
// https://github.com/google/kati/pull/116