]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process): Use $TMPDIR instead of trying $TMP
authorEli Zaretskii <eliz@gnu.org>
Wed, 14 Oct 1998 15:17:11 +0000 (15:17 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 14 Oct 1998 15:17:11 +0000 (15:17 +0000)
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.

src/callproc.c

index f30087d09e441b698c15038db279790510ad1298..8141a18a90939115027cfbde98673a6d5d00ec18 100644 (file)
@@ -439,7 +439,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
     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 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
   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
     {