From dac847ec972cf1e288e15afa79946dc7e2e851be Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 28 May 2024 23:17:20 +0000 Subject: logic: tpax_archive_append() properly support the -d (no recursion) option. --- src/logic/tpax_archive_append.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/logic') 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; -- cgit v1.2.3