diff options
author | Bodo Möller <bodo@openssl.org> | 2000-03-11 01:29:26 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-03-11 01:29:26 +0000 |
commit | bf8479d22f2f10da72e2c35c6ee51aab5db2bcf0 (patch) | |
tree | 78997ee38fe33d60d8ac0fa7983d3d25d51f5c50 /crypto/rand/randfile.c | |
parent | 4a56f7493c883ea220c47a0c394cec4eff498af1 (diff) | |
download | openssl-bf8479d22f2f10da72e2c35c6ee51aab5db2bcf0.tar.gz |
Workaround for Windoze weirdness.
Diffstat (limited to 'crypto/rand/randfile.c')
-rw-r--r-- | crypto/rand/randfile.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |