From: Kern Sibbald Date: Fri, 18 Dec 2015 11:35:04 +0000 (+0100) Subject: Fix restore of Windows streams to non-Windows machines X-Git-Tag: Release-7.4.0~115 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e30e10584af27efecdb555afcb63e694a5faf776;p=bacula%2Fbacula Fix restore of Windows streams to non-Windows machines --- diff --git a/bacula/src/filed/restore.c b/bacula/src/filed/restore.c index 24580bd88a..b6c2819e85 100644 --- a/bacula/src/filed/restore.c +++ b/bacula/src/filed/restore.c @@ -1295,9 +1295,7 @@ static bool store_data(r_ctx &rctx, char *data, const int32_t length, bool win32 jcr->last_fname, be.bstrerror(bfd->berrno)); return false; } - } - - if ((wstat=bwrite(bfd, data, length)) != (ssize_t)length) { + } else if ((wstat=bwrite(bfd, data, length)) != (ssize_t)length) { berrno be; int type = M_ERROR; int len = strlen(jcr->last_fname);