1 This patch corrects a bug where the last volume of a migration
2 job is incorrectly found producing an error. This fixes bug #936.
3 Apply the patch to 2.2.3 (and possibly earlier 2.2.x versions) with:
6 patch -p0 <2.2.3-migrate-vol.patch
7 ./configure (your options)
12 Index: src/dird/migrate.c
13 ===================================================================
14 --- src/dird/migrate.c (revision 5507)
15 +++ src/dird/migrate.c (working copy)
16 @@ -1098,8 +1098,10 @@
17 if (mig_jcr->VolumeName[0]) {
18 /* Find last volume name. Multiple vols are separated by | */
19 char *p = strrchr(mig_jcr->VolumeName, '|');
21 - p = mig_jcr->VolumeName;
25 + p = mig_jcr->VolumeName; /* no |, take full name */
27 bstrncpy(mr.VolumeName, p, sizeof(mr.VolumeName));
28 if (!db_get_media_record(jcr, jcr->db, &mr)) {