From 72d1181d50ccb0b410e3745f4fd3981fd673d647 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Wed, 25 Jan 2012 13:31:36 +0100 Subject: [PATCH] Finally fixed the annoying `Invalid cross-device link' problem. Due to a missing slash (/), temporary files were put into the parent directory instead of the same one. See: mhbuild: unable to rename output /home/meillo/Mail/send0zxfDu to /home/meillo/MailmhbuildzQjMUm: Invalid cross-device link --- sbr/m_mktemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbr/m_mktemp.c b/sbr/m_mktemp.c index 4a1eed1..4c7703c 100644 --- a/sbr/m_mktemp.c +++ b/sbr/m_mktemp.c @@ -124,7 +124,7 @@ m_mktemp2( return m_mktemp(pfx_in, fd_ret, fp_ret); } n = (int)(cp-dir_in-1); /* Length of dir component */ - snprintf(buffer, sizeof(buffer), "%.*s%s", n, dir_in, pfx_in); + snprintf(buffer, sizeof(buffer), "%.*s/%s", n, dir_in, pfx_in); return m_mktemp(buffer, fd_ret, fp_ret); } -- 1.7.10.4