summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/tpax_archive_append.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/logic/tpax_archive_append.c b/src/logic/tpax_archive_append.c
index 6ed414b..444ae7f 100644
--- a/src/logic/tpax_archive_append.c
+++ b/src/logic/tpax_archive_append.c
@@ -455,8 +455,9 @@ int tpax_archive_append(
for (; cdent; ) {
if (cdent->dirent.d_type == DT_DIR)
- if (tpax_archive_append_dir_entries(dctx,cdent) < 0)
- return TPAX_NESTED_ERROR(dctx);
+ if (dctx->cctx->drvflags & TPAX_DRIVER_DIR_MEMBER_RECURSE)
+ if (tpax_archive_append_dir_entries(dctx,cdent) < 0)
+ return TPAX_NESTED_ERROR(dctx);
addr = (uintptr_t)cdent;
addr += cdent->nsize;