diff --git a/apache/apache-lib.pl b/apache/apache-lib.pl index 45649ca30..1596bb6b4 100755 --- a/apache/apache-lib.pl +++ b/apache/apache-lib.pl @@ -1749,9 +1749,9 @@ foreach $l (&find_directive_struct("LoadModule", $conf)) { undef(@get_config_cache); # Cache is no longer valid # Add dynamically loaded modules -&open_execute_command(APACHE, "$config{'apachectl_path'} -l 2>/dev/null", 1); +&open_execute_command(APACHE, "$config{'apachectl_path'} -M 2>/dev/null", 1); while() { - if (/(\S+)\.c/ && -r "$module_root_directory/$1.pl") { + if (/(\S+)_module/ && -r "$module_root_directory/$1.pl") { push(@rv, $1); } }