FreeBSD Bugzilla – Attachment 119896 Details for
Bug 162582
[maintainer-update] www/squidguard: fix when compiled against BDB 5.2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.65 KB, created by
Guido Falsi
on 2011-11-15 14:10:10 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Guido Falsi
Created:
2011-11-15 14:10:10 UTC
Size:
1.65 KB
patch
obsolete
>diff -ruN squidguard.old/files/patch-src_sgDB.c squidguard/files/patch-src_sgDB.c >--- squidguard.old/files/patch-src_sgDB.c 2011-11-15 14:45:05.703600562 +0100 >+++ squidguard/files/patch-src_sgDB.c 2011-11-15 14:45:52.374601599 +0100 >@@ -1,6 +1,6 @@ > --- src/sgDb.c.orig 2008-07-14 20:29:41.000000000 +0200 >-+++ src/sgDb.c 2011-05-26 11:04:22.106201692 +0200 >-@@ -119,14 +119,20 @@ >++++ src/sgDb.c 2011-11-15 12:00:23.744601663 +0100 >+@@ -119,14 +119,39 @@ > flag = DB_CREATE; > if(createdb) > flag = flag | DB_TRUNCATE; >@@ -11,6 +11,27 @@ > + NULL, > +#endif > + 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, >++#if DB_VERSION_MINOR >= 1 >++ NULL, >++#endif >++ dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { >++ sgLogFatalError("Error db_open: %s", strerror(ret)); >++ } >++ } >++#endif >++#if DB_VERSION_MAJOR == 5 >++ if(globalUpdate || createdb || (dbfile != NULL && stat(dbfile,&st))){ >++ flag = DB_CREATE; >++ if(createdb) >++ flag = flag | DB_TRUNCATE; >++ if ((ret = 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)); > } >@@ -18,9 +39,7 @@ > - if ((ret = > - Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { > + if ((ret = Db->dbp->open(Db->dbp, >-+#if DB_VERSION_MINOR >= 1 > + NULL, >-+#endif > + dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { > sgLogFatalError("Error db_open: %s", strerror(ret)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 162582
: 119896