DragonFlyBSD Kernel Audit
DF-0186 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/kern/kern_acl.c b/sys/kern/kern_acl.c
--- a/sys/kern/kern_acl.c
+++ b/sys/kern/kern_acl.c
@@ -112,7 +112,7 @@
 
 	ucred = td->td_ucred;
 	vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
-	error = VOP_SETACL(vp, ACL_TYPE_DEFAULT, 0, ucred);
+	error = VOP_SETACL(vp, type, 0, ucred);
 	vn_unlock(vp);
 	return (error);
 }