diff options
| author | Jakob Unterwurzacher | 2026-11-19 20:48:14 +0100 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-11-19 20:48:14 +0100 |
| commit | 4673301f2f1a08b3179b482deaa50f2a2a464753 (patch) | |
| tree | 1f9a49ddfbe93fb73433dff75348579d01b1207b /internal/fido2 | |
| parent | c4ef68bbbd182901d861d3f9c413d9c8a509b926 (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 'internal/fido2')
0 files changed, 0 insertions, 0 deletions
