From: Eric Bollengier Date: Wed, 9 Jul 2008 09:18:36 +0000 (+0000) Subject: ebl Fix segfault with berkeleyDB init X-Git-Tag: Release-7.0.0~4319 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=99ecd6b8c82b9a5a82d7e065cd38ed027e3a0127;p=bacula%2Fbacula ebl Fix segfault with berkeleyDB init git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7349 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/testing/accurate-db.patch b/bacula/patches/testing/accurate-db.patch index 47eabce1b1..03c712d0ba 100644 --- a/bacula/patches/testing/accurate-db.patch +++ b/bacula/patches/testing/accurate-db.patch @@ -1,7 +1,7 @@ Index: src/filed/accurate.c =================================================================== ---- src/filed/accurate.c (révision 7344) -+++ src/filed/accurate.c (copie de travail) +--- src/filed/accurate.c (revision 7346) ++++ src/filed/accurate.c (working copy) @@ -32,193 +32,310 @@ #include "bacula.h" @@ -111,7 +111,7 @@ Index: src/filed/accurate.c + dbenv->set_errpfx(dbenv, "hash"); + + -+ if ((ret = dbenv->open(dbenv, NULL, DB_PRIVATE, 0)) != 0) { ++ if ((ret = dbenv->open(dbenv, working_directory, DB_PRIVATE, 0)) != 0) { + Jmsg(jcr, M_ERROR, 1, _("Can't open initialize hash disk ERR=%i\n"), ret); + dbenv->close(dbenv, 0); + dbenv = NULL; @@ -574,8 +574,8 @@ Index: src/filed/accurate.c -#endif Index: src/filed/filed.h =================================================================== ---- src/filed/filed.h (révision 7344) -+++ src/filed/filed.h (copie de travail) +--- src/filed/filed.h (revision 7346) ++++ src/filed/filed.h (working copy) @@ -35,11 +35,35 @@ @@ -619,8 +619,8 @@ Index: src/filed/filed.h #include "findlib/find.h" Index: src/baconfig.h =================================================================== ---- src/baconfig.h (révision 7344) -+++ src/baconfig.h (copie de travail) +--- src/baconfig.h (revision 7346) ++++ src/baconfig.h (working copy) @@ -113,6 +113,12 @@ #endif /* HAVE_WIN32 */ @@ -636,8 +636,8 @@ Index: src/baconfig.h #include Index: src/jcr.h =================================================================== ---- src/jcr.h (révision 7344) -+++ src/jcr.h (copie de travail) +--- src/jcr.h (revision 7346) ++++ src/jcr.h (working copy) @@ -341,12 +341,7 @@ CRYPTO_CTX crypto; /* Crypto ctx */ DIRRES* director; /* Director resource */