]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/restore.c
Remove the USE_WIN32STREAMEXTRACTION #defines (always on)
[bacula/bacula] / bacula / src / filed / restore.c
index 1ac1d634a9daac180bf4e6cc3fc21626a5932a55..f218a6a7e1b0c8da28ade955cd4d36ef9cdbce94 100644 (file)
@@ -227,7 +227,7 @@ void do_restore(JCR *jcr)
 
          attr->data_stream = decode_stat(attr->attr, &attr->statp, &attr->LinkFI);
 
-         if (!is_stream_supported(attr->data_stream)) {
+         if (!is_restore_stream_supported(attr->data_stream)) {
             if (!non_support_data++) {
                Jmsg(jcr, M_ERROR, 0, _("%s stream not supported on this Client.\n"),
                   stream_to_ascii(attr->data_stream));
@@ -541,7 +541,6 @@ int32_t extract_data(JCR *jcr, BFILE *bfd, POOLMEM *buf, int32_t buflen,
       Dmsg2(30, "Write %u bytes, total before write=%s\n", wsize, edit_uint64(jcr->JobBytes, ec1));
    }
 
-#ifdef USE_WIN32STREAMEXTRACTION
    if (flags & FO_WIN32DECOMP) {
       if (!processWin32BackupAPIBlock(bfd, wbuf, wsize)) {
          berrno be;
@@ -549,10 +548,7 @@ int32_t extract_data(JCR *jcr, BFILE *bfd, POOLMEM *buf, int32_t buflen,
                jcr->last_fname, be.strerror(bfd->berrno));
          return -1;
       }
-   }
-   else
-#endif
-   if (bwrite(bfd, wbuf, wsize) != (ssize_t)wsize) {
+   } else if (bwrite(bfd, wbuf, wsize) != (ssize_t)wsize) {
       berrno be;
       Jmsg2(jcr, M_ERROR, 0, _("Write error on %s: %s\n"), 
             jcr->last_fname, be.strerror(bfd->berrno));