# HG changeset patch # User Eli Zaretskii # Date 908378231 0 # Node ID aaad8461ff34bda55df49b54bb0df25561a610a5 # Parent b84718f930f805ff4951b61eb8843102d6d3e059 (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 -r b84718f930f8 -r aaad8461ff34 src/callproc.c --- 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 {