]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/1.36.1/1.36.1-truncate.patch
Add new free_tls() entry point so that Win32 builds.
[bacula/bacula] / bacula / patches / 1.36.1 / 1.36.1-truncate.patch
1
2  This patch fixes a bug where a tape gets "truncated" after
3  doing a restore. The number of files in the catalog do not
4  agree with what Bacula thinks is on tape, then the tape is
5  marked in error.
6  Apply this patch to version 1.36.1 with:
7
8  cd <bacula>
9  patch -p0 <1.36.1-truncate.patch
10  make
11  ...
12
13
14 --- src/stored/read_record.c.orig       2004-09-29 21:11:17.000000000 +0200
15 +++ src/stored/read_record.c    2005-02-15 13:22:12.723140229 +0100
16 @@ -266,7 +266,7 @@
17        Dmsg2(300, "Current postion (file:block) %d:%d\n",
18          dev->file, dev->block_num);
19        jcr->bsr->mount_next_volume = false;
20 -      dev->state |= ST_EOT;
21 +//    dev->state |= ST_EOT;
22        rec->Block = 0;
23        return 1;
24     }