]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/restore.c
18Jun08
[bacula/bacula] / bacula / src / filed / restore.c
index 5624b2d33d325751420e277ba8bc90ada16251ad..299b78f9e2a5b33902fbe92add40c289f14028d2 100644 (file)
@@ -320,6 +320,11 @@ void do_restore(JCR *jcr)
             bclose(&rctx.bfd);
          }
 
+         /* TODO: manage deleted files */
+         if (rctx.type == FT_DELETED) { /* deleted file */
+            continue;
+         }
+
          /*
           * Unpack attributes and do sanity check them
           */
@@ -645,7 +650,7 @@ void do_restore(JCR *jcr)
          break;
 
       case STREAM_PLUGIN_NAME:
-         Dmsg1(000, "stream_plugin_name=%s\n", sd->msg);
+         Dmsg1(000, "restore stream_plugin_name=%s\n", sd->msg);
          plugin_name_stream(jcr, sd->msg);
          break;
 
@@ -1109,7 +1114,6 @@ int32_t extract_data(JCR *jcr, BFILE *bfd, POOLMEM *buf, int32_t buflen,
        * packet length may be re-read by unser_crypto_packet_len() */
       cipher_ctx->packet_len = 0;
    }
-
    return wsize;
 }