diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2008-08-03 21:53:13 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2008-08-03 21:53:13 +0000 |
commit | 03bbbc7cab9151792815b9cdaa64215e47a44d6e (patch) | |
tree | ae47e497ff9aac747113a8bd4214b922ef4b59f4 /usr.sbin | |
parent | de300b9c3b6ce002cc7d82d370484db14de528bc (diff) |
Don't print a warning when the random device cannot be opened if
we have a pre-chroot random device. OK deraadt@ kettenis@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bind/bin/named/server.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/bind/bin/named/server.c b/usr.sbin/bind/bin/named/server.c index 83645b1e516..fb4e1c0895d 100644 --- a/usr.sbin/bind/bin/named/server.c +++ b/usr.sbin/bind/bin/named/server.c @@ -3110,15 +3110,6 @@ load_configuration(const char *filename, ns_server_t *server, const char *randomdev = cfg_obj_asstring(obj); result = isc_entropy_createfilesource(ns_g_entropy, randomdev); - if (result != ISC_R_SUCCESS) - isc_log_write(ns_g_lctx, - NS_LOGCATEGORY_GENERAL, - NS_LOGMODULE_SERVER, - ISC_LOG_INFO, - "could not open entropy source " - "%s: %s", - randomdev, - isc_result_totext(result)); #ifdef PATH_RANDOMDEV if (ns_g_fallbackentropy != NULL) { if (result != ISC_R_SUCCESS) { @@ -3134,8 +3125,17 @@ load_configuration(const char *filename, ns_server_t *server, &ns_g_entropy); } isc_entropy_detach(&ns_g_fallbackentropy); - } + } else #endif + if (result != ISC_R_SUCCESS) + isc_log_write(ns_g_lctx, + NS_LOGCATEGORY_GENERAL, + NS_LOGMODULE_SERVER, + ISC_LOG_INFO, + "could not open entropy source " + "%s: %s", + randomdev, + isc_result_totext(result)); } } |