From: Bodo Möller Date: Sat, 11 Mar 2000 01:29:26 +0000 (+0000) Subject: Workaround for Windoze weirdness. X-Git-Tag: OpenSSL_0_9_5a-beta1~63 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=bf8479d22f2f10da72e2c35c6ee51aab5db2bcf0 Workaround for Windoze weirdness. --- diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 658a8d6b65..392efddb21 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -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;