From: markus schnalke Date: Wed, 25 Jan 2012 12:31:36 +0000 (+0100) Subject: Finally fixed the annoying `Invalid cross-device link' problem. X-Git-Tag: mmh-thesis-end~411 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=72d1181d50ccb0b410e3745f4fd3981fd673d647;p=mmh 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 --- 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); }