720c6f3
# ./pullrev.sh r1861269
720c6f3
http://svn.apache.org/viewvc?view=revision&revision=r1861269
720c6f3
720c6f3
Allows "httpd -L" etc to work before httpd-init.service has run,
720c6f3
if mod_ssl is installed.
720c6f3
720c6f3
--- httpd-2.4.37/modules/ssl/ssl_engine_config.c
720c6f3
+++ httpd-2.4.37/modules/ssl/ssl_engine_config.c
720c6f3
@@ -904,8 +904,14 @@
720c6f3
 static const char *ssl_cmd_check_file(cmd_parms *parms,
720c6f3
                                       const char **file)
720c6f3
 {
720c6f3
-    const char *filepath = ap_server_root_relative(parms->pool, *file);
720c6f3
+    const char *filepath;
720c6f3
 
720c6f3
+    /* If only dumping the config, don't verify the paths */
720c6f3
+    if (ap_state_query(AP_SQ_RUN_MODE) == AP_SQ_RM_CONFIG_DUMP) {
720c6f3
+        return NULL;
720c6f3
+    }
720c6f3
+
720c6f3
+    filepath = ap_server_root_relative(parms->pool, *file);
720c6f3
     if (!filepath) {
720c6f3
         return apr_pstrcat(parms->pool, parms->cmd->name,
720c6f3
                            ": Invalid file path ", *file, NULL);