mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fixed running under inetd detection
This commit is contained in:
@@ -223,9 +223,6 @@ print "</form>\n";
|
||||
if (!$inet) {
|
||||
# Get the FTP server pid
|
||||
$pid = &get_proftpd_pid();
|
||||
}
|
||||
|
||||
if (!$inet) {
|
||||
print "<hr>\n";
|
||||
print &ui_buttons_start();
|
||||
}
|
||||
|
||||
@@ -738,6 +738,11 @@ return $url;
|
||||
# Returns the inetd/xinetd object and program if ProFTPd is running under one
|
||||
sub running_under_inetd
|
||||
{
|
||||
# Never under inetd if not set so in config
|
||||
local $conf = &get_config();
|
||||
local $st = &find_directive("ServerType", $conf);
|
||||
return ( ) if (lc($st) eq "inetd");
|
||||
|
||||
local ($inet, $inet_mod);
|
||||
if (&foreign_check('inetd')) {
|
||||
# Check if proftpd is in inetd
|
||||
|
||||
Reference in New Issue
Block a user