--- /dev/null
+ This patch corrects a bug where the last volume of a migration
+ job is incorrectly found producing an error. This fixes bug #936.
+ Apply the patch to 2.2.3 (and possibly earlier 2.2.x versions) with:
+
+ cd <bacula-source>
+ patch -p0 <2.2.3-migrate-vol.patch
+ ./configure (your options)
+ make
+ ...
+ make install
+
+Index: src/dird/migrate.c
+===================================================================
+--- src/dird/migrate.c (revision 5507)
++++ src/dird/migrate.c (working copy)
+@@ -1098,8 +1098,10 @@
+ if (mig_jcr->VolumeName[0]) {
+ /* Find last volume name. Multiple vols are separated by | */
+ char *p = strrchr(mig_jcr->VolumeName, '|');
+- if (!p) {
+- p = mig_jcr->VolumeName;
++ if (p) {
++ p++; /* skip | */
++ } else {
++ p = mig_jcr->VolumeName; /* no |, take full name */
+ }
+ bstrncpy(mr.VolumeName, p, sizeof(mr.VolumeName));
+ if (!db_get_media_record(jcr, jcr->db, &mr)) {
if (mig_jcr->VolumeName[0]) {
/* Find last volume name. Multiple vols are separated by | */
char *p = strrchr(mig_jcr->VolumeName, '|');
- if (!p) {
- p = mig_jcr->VolumeName;
+ if (p) {
+ p++; /* skip | */
+ } else {
+ p = mig_jcr->VolumeName; /* no |, take full name */
}
bstrncpy(mr.VolumeName, p, sizeof(mr.VolumeName));
if (!db_get_media_record(jcr, jcr->db, &mr)) {
*/
#undef VERSION
-#define VERSION "2.2.3"
-#define BDATE "09 September 2007"
-#define LSMDATE "09Sep07"
+#define VERSION "2.2.4"
+#define BDATE "12 September 2007"
+#define LSMDATE "12Sep07"
#define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n"
#define BYEAR "2007" /* year for copyright messages in progs */
General:
12Sep07
+kes Fix migration code to get correct Volume name with multiple volumes
+ by skipping |. Fixes bug #936.
kes Implement patch supplied by Landon to fix bug #944 where using
TLS with bconsole uses 99+% of the CPU.
kes Move patches into patches directory.
Technical notes on version 2.3
General:
+12Sep07
+kes Fix migration code to get correct Volume name with multiple volumes
+ by skipping |. Fixes bug #936.
+kes Implement patch supplied by Landon to fix bug #944 where using
+ TLS with bconsole uses 99+% of the CPU.
+kes Note, you need GTK >= 2.10 to be able to link the Tray Monitor
+ program.
+kes Move patches into patches directory.
+11Sep07
+ebl Fix bug #946 about "bacula-dir -t" witch doesn't works
+ as expected.
+09Sep07
+ebl Using "m" in bconsole will show messages like before,
+ and not memory usage.
+kes Fix bug #935, and probably also bug #903 where files were not
+ restored. MediaId was not properly set in JobMedia record after
+ a Volume change.
+08Sep07
+kes Suppress chown and chmod error messages if the FD is not running
+ as root.
+07Sep07
+kes Apply Martin Simmons patch that should turn off the new API usage
+ when batch insert is turned off allowing building on older
+ PostgreSQLs.
+kes Add ./configure search in qwt-qt4 for qwt package
+05Sep07
+kes Bacula is now free of 3rd party GPL copyrighted code!
+kes Remove idcache.c
+kes Add guid_to_name.c/h which replace idcache.
+kes Remove enh_fnmatch.c. Make code that references it use fnmatch.c
+04Sep07
+ebl Detect if new PosgreSQL batch insert API is present.
+kes Correct incorrect mempool call causing Director crash.
+sb Update spec files for 2.2.1 release
+03Sep07
+kes Fix memory pool call in ua_output.c. bug #934.
+kes Replace fnmatch.c and fnmatch.h by modified BSD versions.
+ Add test program to fnmatch.c
+02Sep07
+kes Integrate patch to README.vc8 from
+ Hederer Jean-Sébastien <hedererjs@asperience.fr, had to manually
+ edit it to get it into Unix patch format.
+kes Implement mkpath.c to replace old FSF makepath.c
+01Sep07
+kes Implement savecwd.h and savecwd.c. Remove FSF versions.
+
Release Version 2.2.1
30Aug07
kes Update POTFILES.in