blob: 7668e264fbfc6a10820455c773a9bc72c3408173 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-af,v 1.7 2001/02/02 16:39:57 jlam Exp $
--- src/modules/standard/mod_so.c.orig Fri Feb 2 00:42:13 2001
+++ src/modules/standard/mod_so.c
@@ -318,7 +318,15 @@
return err;
}
- file = ap_server_root_relative(cmd->pool, filename);
+ /*
+ * If the filename starts with '!', then just dlopen() it without
+ * translating it to a pathname relative to ServerRoot.
+ */
+ if (filename[0] == '!') {
+ file = filename + 1;
+ } else {
+ file = ap_server_root_relative(cmd->pool, filename);
+ }
if (!(handle = ap_os_dso_load(file))) {
const char *my_error = ap_os_dso_error();
|