From d774186db610418037b9a91da11b52a06a5ff95b Mon Sep 17 00:00:00 2001 From: jim Date: Fri, 25 Sep 2009 13:08:36 +0000 Subject: TMPDIR is the canonical prefered envvar to use git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@818841 13f79535-47bb-0310-9956-ffa450edef68 --- file_io/unix/tempdir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file_io/unix/tempdir.c') 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" -- cgit v1.2.1