aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/acl.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/acl.go')
-rw-r--r--system/acl.go2
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) {