]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/findlib/attribs.c
Add FT_RESTORE and first cut handling it
[bacula/bacula] / bacula / src / findlib / attribs.c
index 10d0b22a8812f70fe74dc82fb95896d60a298205..950bb2ad78986232665d3aa6f6e053d16ffaab7d 100644 (file)
@@ -68,6 +68,12 @@ int select_data_stream(FF_PKT *ff_pkt)
 {
    int stream;
 
+   /* This is a plugin special restore object */
+   if (ff_pkt->type == FT_RESTORE_FIRST) {
+      ff_pkt->flags = 0;
+      return STREAM_RESTORE_OBJECT;
+   }
+
    /**
     *  Fix all incompatible options
     */