]> git.ipfire.org Git - people/ms/ipfire-2.x.git/blob - src/patches/squidGuard-1.4-db5.patch
squidGuard: Fix generating databases with libdb >= 5
[people/ms/ipfire-2.x.git] / src / patches / squidGuard-1.4-db5.patch
1 diff -ruN squidGuard-1.4-vanilla/src/sgDb.c squidGuard-1.4/src/sgDb.c
2 --- squidGuard-1.4-vanilla/src/sgDb.c 2008-07-15 04:29:41.000000000 +1000
3 +++ squidGuard-1.4/src/sgDb.c 2013-01-21 12:47:41.049325756 +1100
4 @@ -114,7 +114,7 @@
5 }
6 }
7 #endif
8 -#if DB_VERSION_MAJOR == 4
9 +#if DB_VERSION_MAJOR >= 4
10 if(globalUpdate || createdb || (dbfile != NULL && stat(dbfile,&st))){
11 flag = DB_CREATE;
12 if(createdb)