From fa0c2ab5c5c9081bc83787a50bf32ee1ca20a3d3 Mon Sep 17 00:00:00 2001 From: "Horacio G. de Oro" Date: Thu, 2 Feb 2012 22:52:28 -0300 Subject: Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for domain.py Signed-off-by: Jelmer Vernooij --- source4/scripting/python/samba/netcmd/domain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 1e26850277..176c4612db 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -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") -- cgit