fix(symlinkguard): report and remove FIFOs, sockets and devices too (#179) #190

Merged
mathias merged 3 commits from fix/guard-special-179 into main 2026-10-05 21:15:57 +00:00
Showing only changes of commit e614d39e06 - Show all commits
@@ -98,4 +98,7 @@ func TestWatchReportsASpecialFileItCannotRemove(t *testing.T) {
defer n.mu.Unlock() defer n.mu.Unlock()
assert.Contains(t, n.msgs[0], "ro/f.md") assert.Contains(t, n.msgs[0], "ro/f.md")
assert.Contains(t, n.msgs[0], "special file") assert.Contains(t, n.msgs[0], "special file")
for _, m := range n.msgs {
assert.NotContains(t, m, "removed", "a file it could not remove was reported as removed")
}
} }