]> diplodocus.org Git - nmh/commit
Stop failed m_mktemp2() that give directory reporting get_temp_dir().
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 23 Sep 2017 21:27:46 +0000 (22:27 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 23 Sep 2017 21:27:46 +0000 (22:27 +0100)
commit3fd1cca50eb98ccfd3d51fce839f5963ef997e80
tree48d1f7d2bc87a696781539cd89fe9883b59495b4
parent5280c5a31ea160150cb6e6ca14e639cf68de0205
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.
uip/annosbr.c
uip/mhbuild.c
uip/send.c
uip/sendsbr.c
uip/whatnowsbr.c