]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1368 about xattr error not displayed correctly at restore time
authorEric Bollengier <eric@baculasystems.com>
Fri, 23 Oct 2015 15:39:56 +0000 (17:39 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 21 Nov 2015 17:39:58 +0000 (09:39 -0800)
bacula/src/filed/xattr.c

index 9240544654b05075e6f7510df3a9ec6538da8f72..67623481fa5afb36e8713b1b8839f4f512e557e6 100644 (file)
@@ -559,11 +559,11 @@ static bxattr_rtn_code aix_restore_xattr_streams(JCR *jcr, int stream, char *con
              * change from one filesystem to an other.
              */
             jcr->xattr_ctx->flags &= ~BXATTR_FLAG_RESTORE_NATIVE;
-            break;
+            /* Failback wanted */
          default:
-            Mmsg2(jcr->errmsg, _("XATTR lsetea error on file \"%s\": ERR=%s\n"),
-                  jcr->last_fname, be.bstrerror());
-            Dmsg1(100, "%s", jcr->errmsg);
+            MmsgD2(100, jcr->errmsg,
+                   _("XATTR lsetea error on file \"%s\": ERR=%s\n"),
+                   jcr->last_fname, be.bstrerror());
             break;
          }
          goto get_out;
@@ -1298,11 +1298,10 @@ static bxattr_rtn_code generic_restore_xattr_streams(JCR *jcr, int stream,
              * change from one filesystem to an other.
              */
             jcr->xattr_ctx->flags &= ~BXATTR_FLAG_RESTORE_NATIVE;
-         } else {
-            Mmsg2(jcr->errmsg, _("lsetxattr error on file \"%s\": ERR=%s\n"),
-                  jcr->last_fname, be.bstrerror());
-            Dmsg1(100, "%s", jcr->errmsg);
          }
+         MmsgD2(100, jcr->errmsg,
+                _("lsetxattr error on file \"%s\": ERR=%s\n"),
+                jcr->last_fname, be.bstrerror());
          goto get_out;
       }
    }