From e30e10584af27efecdb555afcb63e694a5faf776 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 18 Dec 2015 12:35:04 +0100 Subject: [PATCH] Fix restore of Windows streams to non-Windows machines --- bacula/src/filed/restore.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.39.5