summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorJesper Larsen <jesper.larsen@ixonos.com>2013-01-04 13:03:58 +0100
committerAndrew Bartlett <abartlet@samba.org>2013-01-09 07:18:33 +0100
commit411440d2d9085fe9db0e3c26c025c6b94d02c00f (patch)
tree1342720a48efd2df24cc412a37696e3f2276d5b0 /lib/replace
parent0615f68096569d00b1f262529024ad40136d445e (diff)
downloadsamba-411440d2d9085fe9db0e3c26c025c6b94d02c00f.tar.gz
samba-411440d2d9085fe9db0e3c26c025c6b94d02c00f.tar.bz2
samba-411440d2d9085fe9db0e3c26c025c6b94d02c00f.zip
replace: Fix compilation of rep_mkstemp
Commit 1fbc185 removed the variable 'p'. Use the equivalent variable 'template' instead. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jan 9 07:18:33 CET 2013 on sn-devel-104
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index f37d69f365..8f1315a3a5 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -405,7 +405,7 @@ int rep_mkstemp(char *template)
mktemp(template);
if (template[0] == 0)
return -1;
- return open(p, O_CREAT|O_EXCL|O_RDWR, 0600);
+ return open(template, O_CREAT|O_EXCL|O_RDWR, 0600);
}
#endif