1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-29 02:50:28 +03:00

Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for domain.py

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Horacio G. de Oro 2012-02-02 22:52:28 -03:00 committed by Jelmer Vernooij
parent 7e02757dfc
commit fa0c2ab5c5

View File

@ -848,9 +848,9 @@ class cmd_domain_samba3upgrade(Command):
eadb = False
elif use_xattrs == "auto" and not s3conf.get("posix:eadb"):
if targetdir:
tmpfile = tempfile.NamedTemporaryFile(prefix=os.path.abspath(targetdir))
tmpfile = tempfile.NamedTemporaryFile(dir=os.path.abspath(targetdir))
else:
tmpfile = tempfile.NamedTemporaryFile(prefix=os.path.abspath(os.path.dirname(lp.get("private dir"))))
tmpfile = tempfile.NamedTemporaryFile(dir=os.path.abspath(os.path.dirname(lp.get("private dir"))))
try:
samba.ntacls.setntacl(lp, tmpfile.name,
"O:S-1-5-32G:S-1-5-32", "S-1-5-32", "native")