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:
7de8192
)
Update from HEAD.
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 15 Jun 2009 11:23:33 +0000
(11:23 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 15 Jun 2009 11:23:33 +0000
(11:23 +0000)
crypto/rand/randfile.c
patch
|
blob
|
history
diff --git
a/crypto/rand/randfile.c
b/crypto/rand/randfile.c
index 4723feecaf30ff7a3f60c4a24618d31c3f132aca..7dc4ceae8e61207c16fddc842cd7b7e6f3c6ea4c 100644
(file)
--- a/
crypto/rand/randfile.c
+++ b/
crypto/rand/randfile.c
@@
-177,8
+177,8
@@
int RAND_write_file(const char *file)
i=stat(file,&sb);
if (i != -1) {
-#if defined(S_I
FBLK) && defined(S_IF
CHR)
- if (
sb.st_mode & (S_IFBLK | S_IFCHR
)) {
+#if defined(S_I
SBLK) && defined(S_IS
CHR)
+ if (
S_ISBLK(sb.st_mode) || S_ISCHR(sb.st_mode
)) {
/* this file is a device. we don't write back to it.
* we "succeed" on the assumption this is some sort
* of random device. Otherwise attempting to write to