]> git.sur5r.net Git - bacula/bacula/commitdiff
Patch from Martin to avoid error when single tape used
authorKern Sibbald <kern@sibbald.com>
Wed, 28 Apr 2010 20:19:28 +0000 (22:19 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:46 +0000 (16:53 +0200)
bacula/src/stored/btape.c

index 38a82367078837293a9b68f4f4adf51dc69621c8..f1757b1d37123f22452dd7d93d12b12269b61927 100644 (file)
@@ -2552,6 +2552,7 @@ static bool do_unfill()
    if (compare_blocks(last_block, block)) {
       if (simple) {
          Pmsg0(-1, _("\nThe last block on the tape matches. Test succeeded.\n\n"));
+         rc = true;
       } else {
          Pmsg0(-1, _("\nThe last block of the first tape matches.\n\n"));
       }