Loading crypto/rand/randfile.c +10 −10 Original line number Diff line number Diff line Loading @@ -134,12 +134,12 @@ int RAND_write_file(const char *file) FILE *out = NULL; int n; #if defined(O_CREAT) && defined(O_EXCL) && !defined(WIN32) #if defined(O_CREAT) && !defined(WIN32) /* For some reason Win32 can't write to files created this way */ /* chmod(..., 0600) is too late to protect the file, * permissions should be restrictive from the start */ int fd = open(file, O_CREAT | O_EXCL, 0600); int fd = open(file, O_CREAT, 0600); if (fd != -1) out = fdopen(fd, "wb"); #endif Loading Loading
crypto/rand/randfile.c +10 −10 Original line number Diff line number Diff line Loading @@ -134,12 +134,12 @@ int RAND_write_file(const char *file) FILE *out = NULL; int n; #if defined(O_CREAT) && defined(O_EXCL) && !defined(WIN32) #if defined(O_CREAT) && !defined(WIN32) /* For some reason Win32 can't write to files created this way */ /* chmod(..., 0600) is too late to protect the file, * permissions should be restrictive from the start */ int fd = open(file, O_CREAT | O_EXCL, 0600); int fd = open(file, O_CREAT, 0600); if (fd != -1) out = fdopen(fd, "wb"); #endif Loading