From 024d2ff7826a81db65eefa1843730b537ebdeef1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 3 Sep 2025 02:16:10 +0900 Subject: system: improve tests of the I struct This cleans up for the test overhaul of this package. Signed-off-by: Ophestra --- system/acl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/acl.go') diff --git a/system/acl.go b/system/acl.go index 04320563..127b90b6 100644 --- a/system/acl.go +++ b/system/acl.go @@ -36,7 +36,7 @@ func (a *ACLUpdateOp) apply(sys *I) error { } func (a *ACLUpdateOp) revert(sys *I, ec *Criteria) error { - if ec.hasType(a) { + if ec.hasType(a.Type()) { msg.Verbose("stripping ACL", a) err := acl.Update(a.path, sys.uid) if errors.Is(err, os.ErrNotExist) { -- cgit v1.3.1