From 800ed359ef4eb6169e2d167c082a16791b9c92fd Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 30 May 2020 01:44:55 +0000 Subject: tpax_init_ustar_header(): support (for now non-recursive) directory entries. --- src/logic/tpax_init_ustar_header.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/logic/tpax_init_ustar_header.c b/src/logic/tpax_init_ustar_header.c index a3ab120..44b74ad 100644 --- a/src/logic/tpax_init_ustar_header.c +++ b/src/logic/tpax_init_ustar_header.c @@ -79,6 +79,8 @@ int tpax_init_ustar_header( typeflag = TPAX_USTAR_TYPEFLAG_REGFILE; else if (S_ISLNK(st->st_mode)) typeflag = TPAX_USTAR_TYPEFLAG_SYMLINK; + else if (S_ISDIR(st->st_mode)) + typeflag = TPAX_USTAR_TYPEFLAG_DIRFILE; else if (S_ISCHR(st->st_mode)) typeflag = TPAX_USTAR_TYPEFLAG_CHARDEV; else if (S_ISBLK(st->st_mode)) -- cgit v1.2.3