From 84ef033832af9e0be886214c70b2006b08630072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Goddard=20Rosa?= Date: Wed, 21 Nov 2007 18:59:14 -0200 Subject: Print the real filename that we failed to open. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we fail to open a temporary file to be renamed to something else, we reported the final filename, not the temporary file we failed to open. Signed-off-by: André Goddard Rosa Signed-off-by: Junio C Hamano --- server-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server-info.c') diff --git a/server-info.c b/server-info.c index 0d1312ca5..a051e49a9 100644 --- a/server-info.c +++ b/server-info.c @@ -35,7 +35,7 @@ static int update_info_refs(int force) safe_create_leading_directories(path0); info_ref_fp = fopen(path1, "w"); if (!info_ref_fp) - return error("unable to update %s", path0); + return error("unable to update %s", path1); for_each_ref(add_info_ref, NULL); fclose(info_ref_fp); adjust_shared_perm(path1); -- cgit v1.2.1