From 411440d2d9085fe9db0e3c26c025c6b94d02c00f Mon Sep 17 00:00:00 2001 From: Jesper Larsen Date: Fri, 4 Jan 2013 13:03:58 +0100 Subject: [PATCH] replace: Fix compilation of rep_mkstemp Commit 1fbc185 removed the variable 'p'. Use the equivalent variable 'template' instead. Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed Jan 9 07:18:33 CET 2013 on sn-devel-104 --- lib/replace/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/replace/replace.c b/lib/replace/replace.c index f37d69f3654..8f1315a3a5d 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 -- 2.11.4.GIT