From 08572822da4d68cf0f3c1e88fd5a69bf5735456a Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 21 Mar 2010 16:07:45 -0700 Subject: [PATCH] use pathp for pathbased file names --- lib/hcrypto/rand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hcrypto/rand.c b/lib/hcrypto/rand.c index 53b0f314c..74ba8dbcf 100644 --- a/lib/hcrypto/rand.c +++ b/lib/hcrypto/rand.c @@ -349,6 +349,8 @@ RAND_file_name(char *filename, size_t size) e = getenv("RANDFILE"); if (e == NULL) e = getenv("HOME"); + if (e) + pathp = 1; } /* * Here we really want to call getpwuid(getuid()) but this will