]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r589177 from trunk:
authorJim Jagielski <jim@apache.org>
Mon, 29 Oct 2007 13:13:17 +0000 (13:13 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 29 Oct 2007 13:13:17 +0000 (13:13 +0000)
Fix possible crash at startup in case of nonexistent DocumentRoot.
PR#39722

Submitted by: niq
Reviewed by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@589618 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
server/core.c

diff --git a/CHANGES b/CHANGES
index a67046951a599f1ad7b741ce8844e73168b2a962..12e6522ebf361c618cc3c02e923f1e0b339ece04 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.7
 
+  *) Core: fix possible crash at startup in case of nonexistent DocumentRoot.
+     PR 39722 [Adrian Buckley <adrian.buckley ntlworld.com>]
+
   *) HTTP protocol: Add "DefaultType none" option.
      PR 13986 and PR 16139 [Nick Kew]
 
diff --git a/STATUS b/STATUS
index bf22e445ecec402826d9f309320db50b3642cb60..a9632c84a9c55ab3ea9b97aed611100cd2aff9c8 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -79,10 +79,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-   * Core: Fix possible crash at startup in case of nonexistent DocumentRoot.
-     PR 39722
-     http://svn.apache.org/viewvc?view=rev&revision=589177
-     +1: niq, rpluem, jim
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index b4aca33b409bf0ea83c167c2618ae08532b9f536..5ba897d9f8f73e6109ce023606c3ba030ccd0324 100644 (file)
@@ -1173,6 +1173,9 @@ static const char *set_document_root(cmd_parms *cmd, void *dummy,
 
     /* Make it absolute, relative to ServerRoot */
     arg = ap_server_root_relative(cmd->pool, arg);
+    if (arg == NULL) {
+        return "DocumentRoot must be a directory";
+    }
 
     /* TODO: ap_configtestonly && ap_docrootcheck && */
     if (apr_filepath_merge((char**)&conf->ap_document_root, NULL, arg,