From: Kern Sibbald Date: Fri, 19 Jan 2007 07:46:04 +0000 (+0000) Subject: Create patches/2.0.1-restart.patch. Fixes bug #755. X-Git-Tag: Release-7.0.0~7032 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8f6e2ed939d66b2b4df5e516a3ee48e4783e3e71;p=bacula%2Fbacula Create patches/2.0.1-restart.patch. Fixes bug #755. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4018 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/1.38.x/patches-1.38.1 b/bacula/patches/1.38.x/patches-1.38.1 new file mode 100644 index 0000000000..8e815b0886 --- /dev/null +++ b/bacula/patches/1.38.x/patches-1.38.1 @@ -0,0 +1,14 @@ +20Nov05 1.38.1-to-1.38.2.patch + This patch fixes the following bugs: + +- Fix crash in tray-monitor when daemon disconnects. Bug #479. +- Fix bnet-server bug found on OpenBSD. Bug #486 (bug originator + says this patch does not fix his problem) +- Fix cancel failure bug. Bug #481 +- Fix failure when Pool name has spaces. Bug #487 +- Fix SD crash in autochanger code. Mutex failure. Bug #488 +- Fix a couple of free()s in src/filed/acl.c +- Fix memory overrun in bfile.c in building OS X resource + fork filename. Bug #489 + + diff --git a/bacula/patches/2.0.1-restart.patch b/bacula/patches/2.0.1-restart.patch new file mode 100644 index 0000000000..80353b3539 --- /dev/null +++ b/bacula/patches/2.0.1-restart.patch @@ -0,0 +1,43 @@ + + This patch should fix the Job restart on error bug that promotes + an Incremental backup to a Full backup. + + Apply it to version 2.0.1 (perhaps to 2.0.0) with: + + cd + patch -p0 <2.0.1-restart.patch + make + ... + make install + +Index: src/dird/job.c +=================================================================== +RCS file: /cvsroot/bacula/bacula/src/dird/job.c,v +retrieving revision 1.148.2.2 +diff -u -r1.148.2.2 job.c +--- src/dird/job.c 12 Jan 2007 09:58:04 -0000 1.148.2.2 ++++ src/dird/job.c 17 Jan 2007 15:29:25 -0000 +@@ -852,11 +852,6 @@ + free_pool_memory(jcr->fname); + jcr->fname = NULL; + } +- if (jcr->stime) { +- Dmsg0(200, "Free JCR stime\n"); +- free_pool_memory(jcr->stime); +- jcr->stime = NULL; +- } + if (jcr->RestoreBootstrap) { + free(jcr->RestoreBootstrap); + jcr->RestoreBootstrap = NULL; +@@ -889,6 +884,11 @@ + pthread_cond_destroy(&jcr->term_wait); + jcr->term_wait_inited = false; + } ++ if (jcr->stime) { ++ Dmsg0(200, "Free JCR stime\n"); ++ free_pool_memory(jcr->stime); ++ jcr->stime = NULL; ++ } + if (jcr->fname) { + Dmsg0(200, "Free JCR fname\n"); + free_pool_memory(jcr->fname); diff --git a/bacula/patches/patches-1.38.1 b/bacula/patches/patches-1.38.1 deleted file mode 100644 index 8e815b0886..0000000000 --- a/bacula/patches/patches-1.38.1 +++ /dev/null @@ -1,14 +0,0 @@ -20Nov05 1.38.1-to-1.38.2.patch - This patch fixes the following bugs: - -- Fix crash in tray-monitor when daemon disconnects. Bug #479. -- Fix bnet-server bug found on OpenBSD. Bug #486 (bug originator - says this patch does not fix his problem) -- Fix cancel failure bug. Bug #481 -- Fix failure when Pool name has spaces. Bug #487 -- Fix SD crash in autochanger code. Mutex failure. Bug #488 -- Fix a couple of free()s in src/filed/acl.c -- Fix memory overrun in bfile.c in building OS X resource - fork filename. Bug #489 - - diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 992a5ee6dd..70328b57d6 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -1,11 +1,14 @@ Technical notes on version 2.0 General: -Version 2.0.1 +19Jan07 +kes Create patches/2.0.1-restart.patch. Fixes bug #755. 18Jan07 kes Fix Job restart on error bug that promotes an Inc to a Full backup. This should fix bug #755. kes Add qt-console and first cut of code. + +Version 2.0.1 12Jan07 kes Fix Bacula->Documentation link on Win32 to point to index.html instead of bacula.html. Fixed bug #750.