From d1d79c1914ea28644a9863d0d13e06e2bec391ef Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 4 Jul 2020 11:13:32 -0700 Subject: [PATCH] Fix perl warning https://sourceforge.net/p/webadmin/bugs/5387/ --- bind8/bind8-lib.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index 8b1efb477..7ac86dc7c 100755 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -67,12 +67,12 @@ our @dnssec_dlv_key = ( 257, 3, 5, '"BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWE my $rand_flag; if ($gconfig{'os_type'} =~ /-linux$/ && - -r "/dev/urandom" && - !$config{'force_random'} && - + -r "/dev/urandom" && + !$config{'force_random'} && + $bind_version && + &compare_version_numbers($bind_version, '9.14') < 0) { # Version: 9.14.2 deprecated the use of -r option # in favor of using /dev/random [bugs:#5370] - $bind_version < '9.14') { $rand_flag = "-r /dev/urandom"; }