summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorHoracio G. de Oro <hgdeoro@gmail.com>2012-02-02 22:48:26 -0300
committerJelmer Vernooij <jelmer@samba.org>2012-02-07 01:11:07 +0100
commit7e02757dfcbfb9f582e1b69a92ba4c9283348f9c (patch)
treedb3cd2bed84fdd09265677cf4e036230482da207 /source4
parent523d5a86deccb143177dbc51e575673540ef1b89 (diff)
downloadsamba-7e02757dfcbfb9f582e1b69a92ba4c9283348f9c.tar.gz
samba-7e02757dfcbfb9f582e1b69a92ba4c9283348f9c.tar.bz2
samba-7e02757dfcbfb9f582e1b69a92ba4c9283348f9c.zip
Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for source4/setup/provision
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/setup/provision4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/setup/provision b/source4/setup/provision
index be528545fd..80237058e4 100755
--- a/source4/setup/provision
+++ b/source4/setup/provision
@@ -223,9 +223,9 @@ if opts.use_xattrs == "yes":
eadb = False
elif opts.use_xattrs == "auto" and not lp.get("posix:eadb"):
if opts.targetdir:
- file = tempfile.NamedTemporaryFile(prefix=os.path.abspath(opts.targetdir))
+ file = tempfile.NamedTemporaryFile(dir=os.path.abspath(opts.targetdir))
else:
- file = tempfile.NamedTemporaryFile(prefix=os.path.abspath(os.path.dirname(lp.get("private dir"))))
+ file = tempfile.NamedTemporaryFile(dir=os.path.abspath(os.path.dirname(lp.get("private dir"))))
try:
samba.ntacls.setntacl(lp, file.name,
"O:S-1-5-32G:S-1-5-32", "S-1-5-32", "native")