Fixed running under inetd detection

This commit is contained in:
Jamie Cameron
2007-06-03 22:32:35 +00:00
parent fcc50c83d1
commit e1f4f0a9ec
2 changed files with 5 additions and 3 deletions

View File

@@ -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();
}

View File

@@ -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