mirror of
https://github.com/webmin/webmin.git
synced 2026-09-17 11:00:42 +01:00
Fix perl warning https://www.virtualmin.com/node/60170
This commit is contained in:
@@ -2991,7 +2991,7 @@ if (&has_ndc() == 2) {
|
||||
" ".$rndc_args." 2>&1 </dev/null");
|
||||
$ex = $?;
|
||||
}
|
||||
if (&has_ndc() != 2 || $out =~ /connect\s+failed/i) {
|
||||
if (&has_ndc() != 2 || $out && $out =~ /connect\s+failed/i) {
|
||||
if (&has_ndc(2)) {
|
||||
# Try with ndc if rndc is not install or failed
|
||||
$out = &backquote_logged("$config{'ndc_cmd'} $args 2>&1 </dev/null");
|
||||
|
||||
Reference in New Issue
Block a user