]> git.pld-linux.org Git - packages/apache1.git/blame - apache1-db4.patch
- update to 1.3.39
[packages/apache1.git] / apache1-db4.patch
CommitLineData
098d451e
JB
1--- apache_1.3.27/src/modules/standard/mod_auth_db.c.orig Fri Feb 14 23:27:47 2003
2+++ apache_1.3.27/src/modules/standard/mod_auth_db.c Fri Feb 14 23:32:14 2003
3@@ -107,6 +107,9 @@
4 #endif
5 #if (DB_VERSION_MAJOR == 4)
6 #define DB4
7+#if (DB_VERSION_MINOR >= 1)
8+#define DB4_1
9+#endif
10 #endif
11 #endif
12
13@@ -170,7 +173,10 @@
14 q.data = user;
15 q.size = strlen(q.data);
16
17-#if defined(DB3) || defined(DB4)
18+#if defined(DB4_1)
19+ if ( db_create(&f, NULL, 0) != 0
20+ || f->open(f, NULL, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
21+#elif defined(DB3) || defined(DB4)
22 if ( db_create(&f, NULL, 0) != 0
23 || f->open(f, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
24 #elif defined(DB2)
This page took 0.04699 seconds and 4 git commands to generate.