summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorHoracio G. de Oro <hgdeoro@gmail.com>2012-02-02 22:52:28 -0300
committerJelmer Vernooij <jelmer@samba.org>2012-02-07 01:11:07 +0100
commitfa0c2ab5c5c9081bc83787a50bf32ee1ca20a3d3 (patch)
treef236211d11c0d1de2921566df8cc6fcf683ff8cf /source4
parent7e02757dfcbfb9f582e1b69a92ba4c9283348f9c (diff)
downloadsamba-fa0c2ab5c5c9081bc83787a50bf32ee1ca20a3d3.tar.gz
samba-fa0c2ab5c5c9081bc83787a50bf32ee1ca20a3d3.tar.bz2
samba-fa0c2ab5c5c9081bc83787a50bf32ee1ca20a3d3.zip
Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for domain.py
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/netcmd/domain.py4
1 files changed, 2 insertions, 2 deletions
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")