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
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);
}