summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic')
-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))