From 2886bb730e06d53b8035480f12751fe4ebb9ffd0 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 22 Jul 2013 21:31:42 -0700 Subject: [PATCH] Correct flag is actually -M to get modules --- apache/apache-lib.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }