Correct flag is actually -M to get modules

This commit is contained in:
Jamie Cameron
2013-07-22 21:31:42 -07:00
parent f23b65a917
commit 2886bb730e

View File

@@ -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(<APACHE>) {
if (/(\S+)\.c/ && -r "$module_root_directory/$1.pl") {
if (/(\S+)_module/ && -r "$module_root_directory/$1.pl") {
push(@rv, $1);
}
}