summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-05-30 01:44:55 +0000
committermidipix <writeonce@midipix.org>2020-05-30 01:44:55 +0000
commit800ed359ef4eb6169e2d167c082a16791b9c92fd (patch)
tree0882230144d2a7277d10f3bdbb06e9bb009b575f /src
parent9c1558b25d84a1ba470a0a3c0bd570d8fe387fd6 (diff)
downloadtpax-800ed359ef4eb6169e2d167c082a16791b9c92fd.tar.bz2
tpax-800ed359ef4eb6169e2d167c082a16791b9c92fd.tar.xz
tpax_init_ustar_header(): support (for now non-recursive) directory entries.
Diffstat (limited to 'src')
-rw-r--r--src/logic/tpax_init_ustar_header.c2
1 files changed, 2 insertions, 0 deletions
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))