diff src/callproc.c @ 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 0e2635f13ea9
children b08de5b1299c
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
     {