X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/bc7e7fff04e49c829957d3c99a24a037c6d49d5e..349ccb810b6e89b1830dbbe70c9e805a2773fcbe:/uip/whatnowsbr.c diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 7c2c021b..d4141389 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -1304,7 +1304,11 @@ sendit (char *sp, char **arg, char *file, int pushed) #endif /* not lint */ && altmsg) { vec[vecp++] = "-dist"; - distfile = getcpy (m_mktemp2(altmsg, invo_name, NULL, NULL)); + if ((cp = m_mktemp2(altmsg, invo_name, NULL, NULL)) == NULL) { + adios(NULL, "unable to create temporary file in %s", + get_temp_dir()); + } + distfile = getcpy (cp); unlink(distfile); if (link (altmsg, distfile) == NOTOK) adios (distfile, "unable to link %s to", altmsg);