From daabc61a0708541209a0fe5ddac7ef0da94aa715 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 21 Nov 2014 16:23:33 +0100 Subject: [PATCH] Fix bad check on bopen_rsrc return status. bug #2106 --- bacula/src/filed/backup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index bd31cc71e8..0489b520b0 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -660,7 +660,7 @@ int save_file(JCR *jcr, FF_PKT *ff_pkt, bool top_level) if (ff_pkt->hfsinfo.rsrclength > 0) { int flags; int rsrc_stream; - if (!bopen_rsrc(&ff_pkt->bfd, ff_pkt->fname, O_RDONLY | O_BINARY, 0) < 0) { + if (bopen_rsrc(&ff_pkt->bfd, ff_pkt->fname, O_RDONLY | O_BINARY, 0) < 0) { ff_pkt->ff_errno = errno; berrno be; Jmsg(jcr, M_NOTSAVED, -1, _(" Cannot open resource fork for \"%s\": ERR=%s.\n"), -- 2.39.5