summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-04-30 23:08:19 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-04-30 23:08:19 +0000
commitde0684f1e0b535147d95ec921f4741481ee7e588 (patch)
treef0398abe1ba273e3e31b8303e10c06e0b0bca08f
parent8f04a387eff8f9fd5d05c4864f4035b4cb15fe66 (diff)
add an ap_server_strip_chroot for LoadModule tags. this partially
unbreaks apachectl restarts (it still dies when it hits dlopen later on) henning@ ok
-rw-r--r--usr.sbin/httpd/src/modules/standard/mod_so.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_so.c b/usr.sbin/httpd/src/modules/standard/mod_so.c
index bb045d6cc92..56ab08dae68 100644
--- a/usr.sbin/httpd/src/modules/standard/mod_so.c
+++ b/usr.sbin/httpd/src/modules/standard/mod_so.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mod_so.c,v 1.9 2003/04/15 16:32:41 henning Exp $ */
+/* $OpenBSD: mod_so.c,v 1.10 2003/04/30 23:08:18 avsm Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
@@ -245,6 +245,7 @@ static const char *load_module(cmd_parms *cmd, void *dummy,
/*
* Load the file into the Apache address space
*/
+ ap_server_strip_chroot(szModuleFile, 0);
if (!(modhandle = ap_os_dso_load(szModuleFile))) {
const char *my_error = ap_os_dso_error();
return ap_pstrcat (cmd->pool, "Cannot load ", szModuleFile,