aboutsummaryrefslogtreecommitdiff
path: root/tests/matrix/atime_linux.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-11-19 20:48:14 +0100
committerJakob Unterwurzacher2026-11-19 20:48:14 +0100
commit4673301f2f1a08b3179b482deaa50f2a2a464753 (patch)
tree1f9a49ddfbe93fb73433dff75348579d01b1207b /tests/matrix/atime_linux.go
parentc4ef68bbbd182901d861d3f9c413d9c8a509b926 (diff)
fsck: count permission errors as skipped, not corrupt
The err == os.ErrPermission comparisons never matched, because os.Open returns a *PathError. Permission errors on dirs and files were hence counted as corrupt even when not running as root. The xattr check compared against syscall.EACCES only and missed EPERM. Add markError(), which uses errors.Is(err, os.ErrPermission) and so handles both EACCES and EPERM, also when wrapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/matrix/atime_linux.go')
0 files changed, 0 insertions, 0 deletions