*/
Dmsg2(10, "End Do Restore. Files=%d Bytes=%s\n", jcr->JobFiles,
edit_uint64(jcr->JobBytes, ec1));
- if (jcr->acl_data->nr_errors > 0) {
+ if (have_acl && jcr->acl_data->nr_errors > 0) {
Jmsg(jcr, M_ERROR, 0, _("Encountered %ld acl errors while doing restore\n"),
jcr->acl_data->nr_errors);
}
- if (jcr->xattr_data->nr_errors > 0) {
+ if (have_xattr && jcr->xattr_data->nr_errors > 0) {
Jmsg(jcr, M_ERROR, 0, _("Encountered %ld xattr errors while doing restore\n"),
jcr->xattr_data->nr_errors);
}