summaryrefslogtreecommitdiff
path: root/www/apache/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-04-26 20:06:58 +0000
committerjlam <jlam@pkgsrc.org>2004-04-26 20:06:58 +0000
commit3ec9c44b26ea0fe67b761d4908806ee6ebd3e622 (patch)
treef3951dcdc5dd26c7c66418d098e6e7660ed68a74 /www/apache/patches
parent99ebfe5dd8dea26859ba5894b72d0ae7a4b47d58 (diff)
downloadpkgsrc-3ec9c44b26ea0fe67b761d4908806ee6ebd3e622.tar.gz
Convert to use bdb.buildlink3.mk and fix sources so that we can use db4.
Diffstat (limited to 'www/apache/patches')
-rw-r--r--www/apache/patches/patch-as16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/apache/patches/patch-as b/www/apache/patches/patch-as
new file mode 100644
index 00000000000..00c39ba9059
--- /dev/null
+++ b/www/apache/patches/patch-as
@@ -0,0 +1,16 @@
+$NetBSD: patch-as,v 1.3 2004/04/26 20:06:58 jlam Exp $
+
+--- src/modules/standard/mod_auth_db.c.orig Mon Feb 3 12:13:27 2003
++++ src/modules/standard/mod_auth_db.c
+@@ -170,7 +170,10 @@ static char *get_db_pw(request_rec *r, c
+ q.data = user;
+ q.size = strlen(q.data);
+
+-#if defined(DB3) || defined(DB4)
++#if defined(DB4)
++ if ( db_create(&f, NULL, 0) != 0
++ || f->open(f, NULL, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
++#elif defined(DB3)
+ if ( db_create(&f, NULL, 0) != 0
+ || f->open(f, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
+ #elif defined(DB2)