From: Eli Zaretskii Date: Wed, 14 Oct 1998 15:17:11 +0000 (+0000) Subject: (Fcall_process): Use $TMPDIR instead of trying $TMP X-Git-Tag: emacs-20.4~1487 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8a52365ce8d2c9a0b2308fe7c769ad785eb1fa22;p=emacs.git (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. --- diff --git a/src/callproc.c b/src/callproc.c index f30087d09e4..8141a18a909 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -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 {