projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a56f74
)
Workaround for Windoze weirdness.
author
Bodo Möller
<bodo@openssl.org>
Sat, 11 Mar 2000 01:29:26 +0000
(
01:29
+0000)
committer
Bodo Möller
<bodo@openssl.org>
Sat, 11 Mar 2000 01:29:26 +0000
(
01:29
+0000)
crypto/rand/randfile.c
patch
|
blob
|
history
diff --git
a/crypto/rand/randfile.c
b/crypto/rand/randfile.c
index 658a8d6b65f06050151105d9003be9cbf0a6d723..392efddb21752081ec48025e05b08e3fdac84ed6 100644
(file)
--- 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;