--- amanda-2.5.0/server-src/amcheck.c_ORIG 2006-05-04 23:29:26.000000000 +0200 +++ amanda-2.5.0/server-src/amcheck.c 2006-05-08 11:43:32.000000000 +0200 @@ -855,10 +855,11 @@ if (tape_status < 0) { tape_t *exptape = lookup_last_reusable_tape(0); fprintf(outf, " (expecting "); if(exptape != NULL) fprintf(outf, "tape %s or ", exptape->label); fprintf(outf, "a new tape)\n"); + tapebad = 1; } else { if (overwrite) { char *wrlabel_status; wrlabel_status = tape_wrlabel(tapename, "X", label, tp->blocksize * 1024);