diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-03 02:16:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-03 02:16:10 +0900 |
| commit | 024d2ff7826a81db65eefa1843730b537ebdeef1 (patch) | |
| tree | b3d9048c075fec0759bd8886a07a252ca0ce4555 /system/acl.go | |
| parent | 6f719bc3c19d56279d2d76d3bcf8fb66ace2d2fb (diff) | |
system: improve tests of the I struct
This cleans up for the test overhaul of this package.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/acl.go')
| -rw-r--r-- | system/acl.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
