1
1

Default the temporary directory to /tmp if no special environment

variables are set.

This commit was SVN r18046.
Этот коммит содержится в:
George Bosilca 2008-03-31 20:15:49 +00:00
родитель f7c8bb78fd
Коммит be2454e0c5

@ -30,6 +30,12 @@
#include "opal/util/opal_environ.h"
#include "opal/constants.h"
#ifdef __WINDOWS__
#define OMPI_DEFAULT_TMPDIR "C:\\TEMP"
#else
#define OMPI_DEFAULT_TMPDIR "/tmp"
#endif
/*
* Merge two environ-like char arrays, ensuring that there are no
* duplicate entires
@ -224,8 +230,7 @@ const char* opal_tmp_directory( void )
if( NULL == (str = getenv("TMPDIR")) )
if( NULL == (str = getenv("TEMP")) )
if( NULL == (str = getenv("TMP")) )
if( NULL == (str = opal_home_directory()) )
str = ".";
str = OMPI_DEFAULT_TMPDIR;
return str;
}