}
/* Write a bunch of sum. */
- sum_write(mtree, str, me);
+ if (me->filetype == AE_IFREG)
+ sum_write(mtree, str, me);
archive_strcat(str, "\n");
if (mtree->indent)
return (ARCHIVE_OK);
mtree->mtree_entry = NULL;
- sum_final(mtree, me);
+ if (me->filetype == AE_IFREG)
+ sum_final(mtree, me);
if (mtree->set.output) {
if (!mtree->dironly) {
if (mtree->mtree_entry == NULL)
return (n);
- sum_update(mtree, buff, n);
+ if (mtree->mtree_entry->filetype == AE_IFREG)
+ sum_update(mtree, buff, n);
return (n);
}