diff options
author | midipix <writeonce@midipix.org> | 2020-05-30 01:44:55 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-05-30 01:44:55 +0000 |
commit | 800ed359ef4eb6169e2d167c082a16791b9c92fd (patch) | |
tree | 0882230144d2a7277d10f3bdbb06e9bb009b575f | |
parent | 9c1558b25d84a1ba470a0a3c0bd570d8fe387fd6 (diff) | |
download | tpax-800ed359ef4eb6169e2d167c082a16791b9c92fd.tar.bz2 tpax-800ed359ef4eb6169e2d167c082a16791b9c92fd.tar.xz |
tpax_init_ustar_header(): support (for now non-recursive) directory entries.
-rw-r--r-- | src/logic/tpax_init_ustar_header.c | 2 |
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)) |