diff options
Diffstat (limited to 'src/lib/libcrypto/rand/randfile.c')
-rw-r--r-- | src/lib/libcrypto/rand/randfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rand/randfile.c b/src/lib/libcrypto/rand/randfile.c index 7183fa32e4..9bd89ba495 100644 --- a/src/lib/libcrypto/rand/randfile.c +++ b/src/lib/libcrypto/rand/randfile.c | |||
@@ -57,7 +57,7 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | /* We need to define this to get macros like S_IFBLK and S_IFCHR */ | 59 | /* We need to define this to get macros like S_IFBLK and S_IFCHR */ |
60 | #define _XOPEN_SOURCE 500 | 60 | #define _XOPEN_SOURCE 1 |
61 | 61 | ||
62 | #include <errno.h> | 62 | #include <errno.h> |
63 | #include <stdio.h> | 63 | #include <stdio.h> |
@@ -233,7 +233,7 @@ const char *RAND_file_name(char *buf, size_t size) | |||
233 | struct stat sb; | 233 | struct stat sb; |
234 | #endif | 234 | #endif |
235 | 235 | ||
236 | if (OPENSSL_issetugid() == 0) | 236 | if (issetugid() == 0) |
237 | s=getenv("RANDFILE"); | 237 | s=getenv("RANDFILE"); |
238 | if (s != NULL && *s && strlen(s) + 1 < size) | 238 | if (s != NULL && *s && strlen(s) + 1 < size) |
239 | { | 239 | { |
@@ -242,7 +242,7 @@ const char *RAND_file_name(char *buf, size_t size) | |||
242 | } | 242 | } |
243 | else | 243 | else |
244 | { | 244 | { |
245 | if (OPENSSL_issetugid() == 0) | 245 | if (issetugid() == 0) |
246 | s=getenv("HOME"); | 246 | s=getenv("HOME"); |
247 | #ifdef DEFAULT_HOME | 247 | #ifdef DEFAULT_HOME |
248 | if (s == NULL) | 248 | if (s == NULL) |