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

python/ntacls: use correct "state directory" smb.conf option instead of "state dir"

samba-tool ntacl get testfile --xattr-backend=tdb --use-ntvfs
Fixes: Unknown parameter encountered: "state dir"

Signed-off-by: Björn Baumbach <bb@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Björn Baumbach
2019-06-12 21:16:25 +02:00
parent 1b0184a956
commit 670a12df52
2 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,9 @@ def checkset_backend(lp, backend, eadbfile):
if eadbfile is not None:
return (samba.xattr_tdb, eadbfile)
else:
return (samba.xattr_tdb, os.path.abspath(os.path.join(lp.get("state dir"), "xattr.tdb")))
state_dir = lp.get("state directory")
db_path = os.path.abspath(os.path.join(state_dir, "xattr.tdb"))
return (samba.xattr_tdb, db_path)
else:
raise XattrBackendError("Invalid xattr backend choice %s" % backend)