Commit d3cefd13 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix one part of bug #13079 with temporary files in call-process-region.

 src/callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp
 fails, signal an error instead of continuing with an empty
 string.
parent 4038c7a2
2012-12-05 Eli Zaretskii <eliz@gnu.org>
* callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp
fails, signal an error instead of continuing with an empty
string. (Bug#13079)
2012-12-04 Eli Zaretskii <eliz@gnu.org>
* fileio.c (file_name_as_directory, directory_file_name) [DOS_NT]:
......
......@@ -977,7 +977,15 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r
close (fd);
}
#else
errno = 0;
mktemp (tempfile);
if (!*tempfile)
{
if (!errno)
errno = EEXIST;
report_file_error ("Failed to open temporary file using pattern",
Fcons (pattern, Qnil));
}
#endif
filename_string = build_string (tempfile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment