Search squid archive

Re: thoughts about squidGuard?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 19 May 2006, Philip Hachey wrote:

> That's what I was hoping for: a package with all of the patches.
>
> Unfortunately, I read this:
> "It needs a recent version of Berkeley Database (> 3.2 but < 4.x) "
> Since I'm using DB 4.2 and I do not wish to downgrade, I think I'll pass.

squidGuard can be made to use Berkeley DB 4.2 with the following patch


--- src/sgDb.c.orig     2004-03-09 03:45:59.000000000 +0100
+++ src/sgDb.c  2004-03-09 03:48:43.000000000 +0100
@@ -98,13 +98,13 @@
     if(createdb)
       flag = flag | DB_TRUNCATE;
     if ((ret =
-        Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) {
+        Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) {
       (void) Db->dbp->close(Db->dbp, 0);
       sgLogFatalError("Error db_open: %s", strerror(ret));
     }
   } else {
     if ((ret =
-        Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
+        Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
       sgLogFatalError("Error db_open: %s", strerror(ret));
     }
   }


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux