summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2021-01-23 16:48:21 +0100
committerThomas Beierlein <tomjbe@gentoo.org>2021-01-23 16:48:21 +0100
commit465b334f163a88f6e045202c23c93cd36637e99a (patch)
tree38ccd6d3c6b73cc943baf849cc76494e51730d0c /app-backup/bacula/files
parentsci-mathematics/flint: add myself and François Bissey as maintainers. (diff)
downloadgentoo-465b334f163a88f6e045202c23c93cd36637e99a.tar.gz
gentoo-465b334f163a88f6e045202c23c93cd36637e99a.tar.bz2
gentoo-465b334f163a88f6e045202c23c93cd36637e99a.zip
app-backup/bacula: Fix database locking bug (bug #766195)
Reported-by: Phil Stracchino <phils@caerllewys.net> Closes: https://bugs.gentoo.org/766195 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Diffstat (limited to 'app-backup/bacula/files')
-rw-r--r--app-backup/bacula/files/bacula-9.6.x-fix-race-condition.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-backup/bacula/files/bacula-9.6.x-fix-race-condition.patch b/app-backup/bacula/files/bacula-9.6.x-fix-race-condition.patch
new file mode 100644
index 000000000000..4862bcece0ef
--- /dev/null
+++ b/app-backup/bacula/files/bacula-9.6.x-fix-race-condition.patch
@@ -0,0 +1,15 @@
+--- src/dird/dird.c.orig 2021-01-19 15:25:16.233573546 -0500
++++ src/dird/dird.c 2021-01-19 15:26:23.884070798 -0500
+@@ -1263,11 +1263,11 @@
+ }
+ if (catalog->db_driver) {
+ /* To copy dbdriver field into "CAT" catalog resource class (local)
+ * from dbdriver in "BDB" catalog DB Interface class (global)
+ */
+- bstrncpy(catalog->db_driver, BDB_db_driver, db_driver_len);
++ bstrncpy(catalog->db_driver, BDB_db_driver, db_driver_len+1);
+ }
+ }
+
+ if (!db || !db_open_database(NULL, db)) {
+ Pmsg2(000, _("Could not open Catalog \"%s\", database \"%s\".\n"),