2008-02-23 06:16:33 +01:00
|
|
|
$NetBSD: patch-af,v 1.11 2008/02/23 05:16:34 obache Exp $
|
1998-12-03 18:23:51 +01:00
|
|
|
|
2008-02-23 06:16:33 +01:00
|
|
|
--- src/modules/standard/mod_so.c.orig 2008-02-23 04:22:56.000000000 +0000
|
2000-09-12 16:17:31 +02:00
|
|
|
+++ src/modules/standard/mod_so.c
|
2008-02-23 06:16:33 +01:00
|
|
|
@@ -322,7 +322,15 @@ static const char *load_file(cmd_parms *
|
2001-02-02 17:39:56 +01:00
|
|
|
return err;
|
|
|
|
}
|
|
|
|
|
2000-09-12 16:17:31 +02:00
|
|
|
- file = ap_server_root_relative(cmd->pool, filename);
|
|
|
|
+ /*
|
2001-02-02 17:39:56 +01:00
|
|
|
+ * If the filename starts with '!', then just dlopen() it without
|
|
|
|
+ * translating it to a pathname relative to ServerRoot.
|
2000-09-12 16:17:31 +02:00
|
|
|
+ */
|
|
|
|
+ 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();
|