- tmpfil = m_mktemp2(NULL, invo_name, NULL, &out);
- if (tmpfil == NULL) adios("prompter", "unable to create temporary file");
- chmod (tmpfil, 0600);
+ if ((tmpfil = m_mktemp2(NULL, invo_name, NULL, &out)) == NULL) {
+ adios(NULL, "unable to create temporary file in %s", get_temp_dir());
+ }