From 7e02757dfcbfb9f582e1b69a92ba4c9283348f9c Mon Sep 17 00:00:00 2001 From: "Horacio G. de Oro" Date: Thu, 2 Feb 2012 22:48:26 -0300 Subject: Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for source4/setup/provision Signed-off-by: Jelmer Vernooij --- source4/setup/provision | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/setup') 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") -- cgit