From: Kern Sibbald Date: Fri, 21 Nov 2014 15:23:33 +0000 (+0100) Subject: Fix bad check on bopen_rsrc return status. bug #2106 X-Git-Tag: Release-7.2.0~120 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=daabc61a0708541209a0fe5ddac7ef0da94aa715;p=bacula%2Fbacula Fix bad check on bopen_rsrc return status. bug #2106 --- 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"),