提交 fd9fa844 编写于 作者: R Richard Levitte

Wrap code starting with a definition.

PR: 854
上级 c2dc3ee8
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册