diff options
author | Richard Levitte <levitte@openssl.org> | 2004-03-25 20:01:01 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-03-25 20:01:01 +0000 |
commit | fd9fa844e21b08b6038e7175f05fbd9be815d3df (patch) | |
tree | 1186daabdc6a1901947b931711f429c39b313aac /crypto/rand/randfile.c | |
parent | c2dc3ee8d9f9662486fba8c450ed8ac8251357e1 (diff) |
Wrap code starting with a definition.
PR: 854
Diffstat (limited to 'crypto/rand/randfile.c')
-rw-r--r-- | crypto/rand/randfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index fd90352848..dda020fb10 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -166,6 +166,7 @@ int RAND_write_file(const char *file) } #if defined(O_CREAT) && !defined(OPENSSL_SYS_WIN32) + { /* For some reason Win32 can't write to files created this way */ /* chmod(..., 0600) is too late to protect the file, @@ -173,6 +174,7 @@ int RAND_write_file(const char *file) int fd = open(file, O_CREAT, 0600); if (fd != -1) out = fdopen(fd, "wb"); + } #endif if (out == NULL) out = fopen(file,"wb"); |