aboutsummaryrefslogtreecommitdiff
path: root/archival/libarchive/decompress_unzstd.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-03-24 12:15:33 +0000
committerRon Yorston <rmy@pobox.com>2026-03-24 12:15:33 +0000
commitaaae1865727bcd53da581340456de34dfb182d5c (patch)
treeb0be881225fad8bcb14977854b248539b7d81ea2 /archival/libarchive/decompress_unzstd.c
parent052807cc3330b3c5c1fb60b93ad0d2039d6142df (diff)
downloadbusybox-w32-zstd.tar.gz
busybox-w32-zstd.tar.bz2
busybox-w32-zstd.zip
archival: support zstd in rpm and dpkgzstd
Diffstat (limited to 'archival/libarchive/decompress_unzstd.c')
-rw-r--r--archival/libarchive/decompress_unzstd.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/archival/libarchive/decompress_unzstd.c b/archival/libarchive/decompress_unzstd.c
index 08930a3e5..c55ab8575 100644
--- a/archival/libarchive/decompress_unzstd.c
+++ b/archival/libarchive/decompress_unzstd.c
@@ -4,16 +4,9 @@
4IF_DESKTOP(long long) int FAST_FUNC 4IF_DESKTOP(long long) int FAST_FUNC
5unpack_zstd_stream(transformer_state_t *xstate) 5unpack_zstd_stream(transformer_state_t *xstate)
6{ 6{
7 char *argv[] = {(char *)"unzstd", NULL}; 7 // FIXME Provide an internal implementation of zstd decompression.
8 char *argv[] = {(char *)"unzstd", (char *)"-cf", (char *)"-", NULL};
8 9
9 /* Exec external unzstd. */
10#if BB_MMU
11 if (xstate->signature_skipped) {
12 /* If called from fork_transformer_with_no_sig() signature_skipped
13 * is just a flag, not the actual offset. But we know it's 4. */
14 xlseek(xstate->src_fd, -4, SEEK_CUR);
15 }
16#endif
17 xmove_fd(xstate->src_fd, STDIN_FILENO); 10 xmove_fd(xstate->src_fd, STDIN_FILENO);
18 xmove_fd(xstate->dst_fd, STDOUT_FILENO); 11 xmove_fd(xstate->dst_fd, STDOUT_FILENO);
19 BB_EXECVP_or_die(argv); 12 BB_EXECVP_or_die(argv);