1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-23 00:23:53 +03:00

ntacls: Pass correct use_ntvfs through to setntacl()

We were already checking the smb.conf to see if it uses the NTVFS file
server or the default smbd server. However, we weren't passing this
through to the setntacl() call.

This fixes the problem we noticed with 'samba-tool gpo aclcheck' failing
after a restore.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Tim Beale
2019-01-15 14:09:15 +13:00
committed by Jeremy Allison
parent 2a7372da7b
commit f3fe96fc2e
2 changed files with 2 additions and 4 deletions

View File

@@ -454,7 +454,8 @@ class NtaclsHelper:
def setntacl(self, path, ntacl_sd):
# ntacl_sd can be obj or str
return setntacl(self.lp, path, ntacl_sd, self.dom_sid)
return setntacl(self.lp, path, ntacl_sd, self.dom_sid,
use_ntvfs=self.use_ntvfs)
def _create_ntacl_file(dst, ntacl_sddl_str):