summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES4
-rw-r--r--crypto/rand/randfile.c8
-rw-r--r--e_os.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/CHANGES b/CHANGES
index 8fa6f44e0f..e182b6072f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,8 +6,8 @@
*) The method for finding the storage location for the Windows RAND seed file
has changed. First we check %RANDFILE%. If that is not set then we check
- the directories %TMP%, %TEMP%, %USERPROFILE%, %SYSTEMROOT% and %HOME% in
- that order. If all else fails we fall back to "C:".
+ the directories %HOME%, %USERPROFILE% and %SYSTEMROOT% in that order. If
+ all else fails we fall back to C:\.
[Matt Caswell]
*) The EVP_EncryptUpdate() function has had its return type changed from void
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index 19cce2c7a8..87cb6c013b 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -292,11 +292,9 @@ const char *RAND_file_name(char *buf, size_t size)
* uses TCHARs, but getenv() gives us chars so its easier to do it this
* way
*/
- if ((s = getenv("TMP")) == NULL
- && (s = getenv("TEMP")) == NULL
- && (s = getenv("USERPROFILE")) == NULL
- && (s = getenv("SYSTEMROOT")) == NULL) {
- s = getenv("HOME");
+ if ((s = getenv("HOME")) == NULL
+ && (s = getenv("USERPROFILE")) == NULL) {
+ s = getenv("SYSTEMROOT");
}
#else
if (OPENSSL_issetugid() == 0)
diff --git a/e_os.h b/e_os.h
index 4951335635..eafa8623aa 100644
--- a/e_os.h
+++ b/e_os.h
@@ -325,6 +325,8 @@ extern FILE *_imp___iob;
# define NO_SYS_PARAM_H
# define NO_SYS_UN_H
+# define DEFAULT_HOME "SYS$LOGIN:"
+
# else
/* !defined VMS */
# ifdef OPENSSL_UNISTD