Workaround for Windoze weirdness.
authorBodo Möller <bodo@openssl.org>
Sat, 11 Mar 2000 01:29:26 +0000 (01:29 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 11 Mar 2000 01:29:26 +0000 (01:29 +0000)
crypto/rand/randfile.c

index 658a8d6..392efdd 100644 (file)
@@ -157,8 +157,10 @@ int RAND_write_file(const char *file)
                int fd = open(file, O_CREAT | O_EXCL, 0600);
                if (fd != -1)
                        out = fdopen(fd, "wb");
-#else          
-               out=fopen(file,"wb");
+               else /* the open(...) reportedly fails on Win98 w/ VisualC */
+                       out = fopen(file,"wb");
+#else
+               out = fopen(file,"wb");
 #endif
                }
        if (out == NULL) goto err;