replace: Fix compilation of rep_mkstemp
authorJesper Larsen <jesper.larsen@ixonos.com>
Fri, 4 Jan 2013 12:03:58 +0000 (13:03 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Jan 2013 10:07:32 +0000 (11:07 +0100)
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
(cherry picked from commit 411440d2d9085fe9db0e3c26c025c6b94d02c00f)

lib/replace/replace.c

index f37d69f36543e86d56baac7dd03cec6ef49944e2..8f1315a3a5de2f1352b4b34bacdc8e1de7175afd 100644 (file)
@@ -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