mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
all failures opening /dev/random were reported as
'I/O error'. This was highly confusing.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: entropy.c,v 1.59 2001/06/21 14:19:19 tale Exp $ */
|
||||
/* $Id: entropy.c,v 1.60 2001/07/18 01:31:13 gson Exp $ */
|
||||
|
||||
/*
|
||||
* This is the system depenedent part of the ISC entropy API.
|
||||
@@ -34,6 +34,8 @@
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
#include "errno2result.h"
|
||||
|
||||
/*
|
||||
* There is only one variable in the entropy data structures that is not
|
||||
* system independent, but pulling the structure that uses it into this file
|
||||
@@ -296,7 +298,7 @@ isc_entropy_createfilesource(isc_entropy_t *ent, const char *fname) {
|
||||
|
||||
fd = open(fname, O_RDONLY | O_NONBLOCK, 0);
|
||||
if (fd < 0) {
|
||||
ret = ISC_R_IOERROR;
|
||||
ret = isc__errno2result(errno);
|
||||
goto errout;
|
||||
}
|
||||
ret = make_nonblock(fd);
|
||||
|
Reference in New Issue
Block a user