You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ji...@apache.org on 2009/09/25 15:08:36 UTC

svn commit: r818841 - /apr/apr/trunk/file_io/unix/tempdir.c

Author: jim
Date: Fri Sep 25 13:08:36 2009
New Revision: 818841

URL: http://svn.apache.org/viewvc?rev=818841&view=rev
Log:
TMPDIR is the canonical prefered envvar to use

Modified:
    apr/apr/trunk/file_io/unix/tempdir.c

Modified: apr/apr/trunk/file_io/unix/tempdir.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/unix/tempdir.c?rev=818841&r1=818840&r2=818841&view=diff
==============================================================================
--- apr/apr/trunk/file_io/unix/tempdir.c (original)
+++ apr/apr/trunk/file_io/unix/tempdir.c Fri Sep 25 13:08:36 2009
@@ -42,7 +42,7 @@
 {
     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 @@
        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"