From 8a52365ce8d2c9a0b2308fe7c769ad785eb1fa22 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 14 Oct 1998 15:17:11 +0000 Subject: [PATCH] (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. --- src/callproc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 { -- 2.39.2