diff options
| author | Eli Zaretskii | 1998-10-14 15:17:11 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 1998-10-14 15:17:11 +0000 |
| commit | 8a52365ce8d2c9a0b2308fe7c769ad785eb1fa22 (patch) | |
| tree | f1dcc5b0e5032c9f20e2b46e332f392ec7c66872 /src | |
| parent | a0c712aea8b4860e7912b558ee4a0fd4ac736704 (diff) | |
| download | emacs-8a52365ce8d2c9a0b2308fe7c769ad785eb1fa22.tar.gz emacs-8a52365ce8d2c9a0b2308fe7c769ad785eb1fa22.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 6 |
1 files 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.") | |||
| 439 | new_argv[1] = 0; | 439 | new_argv[1] = 0; |
| 440 | 440 | ||
| 441 | #ifdef MSDOS /* MW, July 1993 */ | 441 | #ifdef MSDOS /* MW, July 1993 */ |
| 442 | if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP"))) | 442 | if ((outf = egetenv ("TMPDIR"))) |
| 443 | strcpy (tempfile = alloca (strlen (outf) + 20), outf); | 443 | strcpy (tempfile = alloca (strlen (outf) + 20), outf); |
| 444 | else | 444 | else |
| 445 | { | 445 | { |
| @@ -811,7 +811,9 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") | |||
| 811 | char *tempfile; | 811 | char *tempfile; |
| 812 | char *outf = '\0'; | 812 | char *outf = '\0'; |
| 813 | 813 | ||
| 814 | if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP"))) | 814 | if ((outf = egetenv ("TMPDIR")) |
| 815 | || (outf = egetenv ("TMP")) | ||
| 816 | || (outf = egetenv ("TEMP"))) | ||
| 815 | strcpy (tempfile = alloca (strlen (outf) + 20), outf); | 817 | strcpy (tempfile = alloca (strlen (outf) + 20), outf); |
| 816 | else | 818 | else |
| 817 | { | 819 | { |