From b7e3c73d7ce749665e2184a629cadcdfbe431316 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 25 Mar 2004 20:01:08 +0000 Subject: [PATCH] Wrap code starting with a definition. PR: 854 --- crypto/rand/randfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index f5d0843d13..c7fba496a8 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"); -- 2.25.1