ntvfs: Fill in sd->type based on the new ACL being added
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Nov 2012 05:45:03 +0000 (16:45 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 13 Nov 2012 21:48:19 +0000 (22:48 +0100)
commit3e2584a86cc610c000f70105f39e7f3fa881aded
treea7cd7e9daa1ea5ac3131fbe7e0da457a91cf82db
parentd6c7e9b1ed6f7befbb2239350bba4547ef781e58
ntvfs: Fill in sd->type based on the new ACL being added

Previously we would not change the type field, and just relied on what
was in the original ACL based on the default SD.

This is required to ensure the SEC_DESC_DACL_PROTECTED is set
which is in turn required for GPOs to be set correctly
to match what windows does.

Andrew Bartlett

Reviewed by: Jeremy Allison <jra@samba.org>
source4/ntvfs/posix/pvfs_acl.c