]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bad check on bopen_rsrc return status. bug #2106
authorKern Sibbald <kern@sibbald.com>
Fri, 21 Nov 2014 15:23:33 +0000 (16:23 +0100)
committerKern Sibbald <kern@sibbald.com>
Fri, 21 Nov 2014 15:23:33 +0000 (16:23 +0100)
bacula/src/filed/backup.c

index bd31cc71e80dec6995bb5e563f48a01fef70f67d..0489b520b05b48151d04bdce32891f751a46c4f1 100644 (file)
@@ -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"),