projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f8c3f2b
)
Fix the no-posix-io option
author
Matt Caswell
<matt@openssl.org>
Mon, 11 Apr 2016 12:59:31 +0000
(13:59 +0100)
committer
Matt Caswell
<matt@openssl.org>
Mon, 11 Apr 2016 13:33:44 +0000
(14:33 +0100)
Fix a compile failure with no-posix-io
Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/rand/randfile.c
patch
|
blob
|
history
diff --git
a/crypto/rand/randfile.c
b/crypto/rand/randfile.c
index a5b2b7f1624beb8ca43d5da257ec41e333570b77..3ee6bf5a162e13788b0f1f820fde2e9f45ff42bb 100644
(file)
--- a/
crypto/rand/randfile.c
+++ b/
crypto/rand/randfile.c
@@
-252,7
+252,7
@@
int RAND_write_file(const char *file)
if (out == NULL)
goto err;
-#if
ndef NO_CHMOD
+#if
!defined(NO_CHMOD) && !defined(OPENSSL_NO_POSIX_IO)
chmod(file, 0600);
#endif
n = RAND_DATA;