changeset 23462:aaad8461ff34

(Fcall_process): Use $TMPDIR instead of trying $TMP and $TEMP, since the former is always set in msdos.c. (Fcall_process_region): When looking for a place to put the temporary files, check $TMPDIR as well.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 14 Oct 1998 15:17:11 +0000
parents b84718f930f8
children ac51d834b81e
files src/callproc.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Wed Oct 14 15:11:12 1998 +0000
+++ b/src/callproc.c	Wed Oct 14 15:17:11 1998 +0000
@@ -439,7 +439,7 @@
     new_argv[1] = 0;
 
 #ifdef MSDOS /* MW, July 1993 */
-  if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP")))
+  if ((outf = egetenv ("TMPDIR")))
     strcpy (tempfile = alloca (strlen (outf) + 20), outf);
   else
     {
@@ -811,7 +811,9 @@
   char *tempfile;
   char *outf = '\0';
 
-  if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP")))
+  if ((outf = egetenv ("TMPDIR"))
+      || (outf = egetenv ("TMP"))
+      || (outf = egetenv ("TEMP")))
     strcpy (tempfile = alloca (strlen (outf) + 20), outf);
   else
     {