summaryrefslogtreecommitdiffstats
path: root/src/ustar.c
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-05-11 04:50:25 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-05-11 04:50:25 (EDT)
commit7b3313e21cf2011761a4d8658713a95659540318 (patch)
treea535a5272047dd85b0f8807efde129468ac777df /src/ustar.c
parentceb7c5fd1ee2705b09aac143931a925a6f23d7eb (diff)
dirent: Add trailing '/' to directories
Diffstat (limited to 'src/ustar.c')
-rw-r--r--src/ustar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ustar.c b/src/ustar.c
index 7ad7da8..359f967 100644
--- a/src/ustar.c
+++ b/src/ustar.c
@@ -288,7 +288,7 @@ opkg_opk_ustar_write_header(struct opkg_opk_ustar *ustar,
memset(&ustar->header, 0, sizeof(ustar->header));
- if (opkg_opk_dirent_name_prefix(dirent,
+ if (opkg_opk_dirent_name_prefix(dirent, (type == 'd' ? 1 : 0),
ustar->header.name,
sizeof(ustar->header.name),
ustar->header.prefix,