From 959530af7fae32f47206c0482dc505cff199c18a Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 3 Nov 2019 14:03:51 -0800 Subject: [PATCH] use the proper API --- proftpd/proftpd-lib.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proftpd/proftpd-lib.pl b/proftpd/proftpd-lib.pl index 6780094b2..89fd84d0c 100755 --- a/proftpd/proftpd-lib.pl +++ b/proftpd/proftpd-lib.pl @@ -799,9 +799,10 @@ else { } } +# get_proftpd_version([&output]) sub get_proftpd_version { -local $out = `$config{'proftpd_path'} -v 2>&1`; +local $out = &backquote_command("$config{'proftpd_path'} -v 2>&1"); ${$_[0]} = $out if ($_[0]); if ($out =~ /ProFTPD\s+Version\s+(\d+)\.([0-9\.]+)/i || $out =~ /ProFTPD\s+(\d+)\.([0-9\.]+)/i) {