Signed-off-by: Kern Sibbald <kern@sibbald.com>
rctx.extract = true;
/* FALLTHROUGH */
case CF_CREATED: /* File created, but there is no content */
- jcr->JobFiles++;
rctx.fileAddr = 0;
print_ls_output(jcr, attr);
if (attr->type == FT_REG && rsrc_len > 0) {
rctx.extract = true;
}
+
+ /*
+ * Count the resource forks not as regular files being restored.
+ */
+ if (rsrc_len == 0) {
+ jcr->JobFiles++;
+ }
+ } else {
+ jcr->JobFiles++;
}
+
if (!rctx.extract) {
/* set attributes now because file will not be extracted */
if (jcr->plugin) {