diff options
author | Jesper Larsen <jesper.larsen@ixonos.com> | 2013-01-04 13:03:58 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-01-09 07:18:33 +0100 |
commit | 411440d2d9085fe9db0e3c26c025c6b94d02c00f (patch) | |
tree | 1342720a48efd2df24cc412a37696e3f2276d5b0 /lib/replace/replace.c | |
parent | 0615f68096569d00b1f262529024ad40136d445e (diff) | |
download | samba-411440d2d9085fe9db0e3c26c025c6b94d02c00f.tar.gz samba-411440d2d9085fe9db0e3c26c025c6b94d02c00f.tar.xz 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/replace.c')
-rw-r--r-- | lib/replace/replace.c | 2 |
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 |