mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
use the proper API
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user