diff options
Diffstat (limited to 'file_io/unix')
-rw-r--r-- | file_io/unix/tempdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/file_io/unix/tempdir.c b/file_io/unix/tempdir.c index 659e0bf49..22325eff1 100644 --- a/file_io/unix/tempdir.c +++ b/file_io/unix/tempdir.c @@ -42,7 +42,7 @@ APR_DECLARE(apr_status_t) apr_temp_dir_get(const char **temp_dir, { apr_status_t apr_err; const char *try_dirs[] = { "/tmp", "/usr/tmp", "/var/tmp" }; - const char *try_envs[] = { "TMP", "TEMP", "TMPDIR" }; + const char *try_envs[] = { "TMPDIR", "TMP", "TEMP"}; const char *dir; char *cwd; int i; @@ -51,9 +51,9 @@ APR_DECLARE(apr_status_t) apr_temp_dir_get(const char **temp_dir, into. Here's the order in which we'll try various paths: + $TMPDIR $TMP $TEMP - $TMPDIR "C:\TEMP" (windows only) "SYS:\TMP" (netware only) "/tmp" |