mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4-provision: don't test for xattrs if posix:eadb is set
when it is set in smb.conf or on the command line, obey the setting and don't try to test for system xattr support
This commit is contained in:
parent
333975d84f
commit
1645190b1c
@ -28,6 +28,7 @@ class XattrBackendError(Exception):
|
||||
|
||||
|
||||
def checkset_backend(lp, backend, eadbfile):
|
||||
# if posix:eadb is set, then force the backend
|
||||
if backend is not None:
|
||||
if backend == "native":
|
||||
lp.set("posix:eadb", "")
|
||||
|
@ -218,7 +218,7 @@ elif opts.partitions_only:
|
||||
eadb = True
|
||||
if opts.use_xattrs == "yes":
|
||||
eadb = False
|
||||
elif opts.use_xattrs == "auto" and lp.get("posix:eadb") is None:
|
||||
elif opts.use_xattrs == "auto" and not lp.get("posix:eadb"):
|
||||
file = tempfile.NamedTemporaryFile()
|
||||
try:
|
||||
samba.ntacls.setntacl(lp, file.name,
|
||||
|
Loading…
Reference in New Issue
Block a user