From: Ralph Corderoy Date: Sat, 23 Sep 2017 21:27:46 +0000 (+0100) Subject: Stop failed m_mktemp2() that give directory reporting get_temp_dir(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/3fd1cca50eb98ccfd3d51fce839f5963ef997e80?hp=3fd1cca50eb98ccfd3d51fce839f5963ef997e80 Stop failed m_mktemp2() that give directory reporting get_temp_dir(). The first parameter of m_mktemp2(), if not NULL, is a path and the basename is used as the directory to hold the new temporary file, but the error message on failing to create that used get_temp_dir() and that's often somewhere else, e.g. `mhbuild /dev/null' attempts /dev/... Don't attempt to state the failed path in the error message as at least that's not misleading. Perhaps the function needs some other indication of success so it can pass back the attempted filename that failed. ---