X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fbextract.c;h=7679da70af7b7756ed05e64a99d896500751c07f;hb=bc9b9b481e86991abd879d30aa03b64b4c68d578;hp=d3bda67e04ea856197a30b18e9735ad958de7326;hpb=03ce97b4b43d7806ecadfa29eaf5b38b268f09c4;p=bacula%2Fbacula diff --git a/bacula/src/stored/bextract.c b/bacula/src/stored/bextract.c index d3bda67e04..7679da70af 100644 --- a/bacula/src/stored/bextract.c +++ b/bacula/src/stored/bextract.c @@ -343,6 +343,12 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec) build_attr_output_fnames(jcr, attr); + if (attr->type == FT_DELETED) { /* TODO: choose the right fname/ofname */ + Jmsg(jcr, M_INFO, 0, _("%s was deleted.\n"), attr->fname); + extract = false; + return true; + } + extract = false; stat = create_file(jcr, attr, &bfd, REPLACE_ALWAYS); switch (stat) { @@ -515,3 +521,4 @@ bool dir_get_volume_info(DCR *dcr, enum get_vol_info_rw writing) Dmsg2(500, "Vol=%s num_parts=%d\n", dcr->VolCatInfo.VolCatName, dcr->VolCatInfo.VolCatParts); return 1; } +