diff options
author | Ron Yorston <rmy@pobox.com> | 2022-08-01 12:45:10 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-08-01 12:51:37 +0100 |
commit | 67a630e5af1ace1dd528ea9652ee69102b3136c3 (patch) | |
tree | c918ed81ad1791c415a811d63d2f8771a7dd6ef7 /archival/libarchive | |
parent | b0f279a48f5f7e57b6f6e941e4b59e9a1bc54548 (diff) | |
download | busybox-w32-67a630e5af1ace1dd528ea9652ee69102b3136c3.tar.gz busybox-w32-67a630e5af1ace1dd528ea9652ee69102b3136c3.tar.bz2 busybox-w32-67a630e5af1ace1dd528ea9652ee69102b3136c3.zip |
make: new applet
This is an experimental implementation of make for busybox-w32,
based on my public domain POSIX make:
https://frippery.org/make/
(GitHub issue #44)
Diffstat (limited to 'archival/libarchive')
-rw-r--r-- | archival/libarchive/Kbuild.src | 1 | ||||
-rw-r--r-- | archival/libarchive/unpack_ar_archive.c | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/archival/libarchive/Kbuild.src b/archival/libarchive/Kbuild.src index d2f284b08..1c74250a2 100644 --- a/archival/libarchive/Kbuild.src +++ b/archival/libarchive/Kbuild.src | |||
@@ -47,6 +47,7 @@ lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) | |||
47 | 47 | ||
48 | lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o | 48 | lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o |
49 | lib-$(CONFIG_CPIO) += get_header_cpio.o | 49 | lib-$(CONFIG_CPIO) += get_header_cpio.o |
50 | lib-$(CONFIG_MAKE) += get_header_ar.o unpack_ar_archive.o | ||
50 | lib-$(CONFIG_TAR) += get_header_tar.o unsafe_prefix.o | 51 | lib-$(CONFIG_TAR) += get_header_tar.o unsafe_prefix.o |
51 | lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o | 52 | lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o |
52 | lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o | 53 | lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o |
diff --git a/archival/libarchive/unpack_ar_archive.c b/archival/libarchive/unpack_ar_archive.c index 125d424c9..923a0b2ab 100644 --- a/archival/libarchive/unpack_ar_archive.c +++ b/archival/libarchive/unpack_ar_archive.c | |||
@@ -16,6 +16,10 @@ void FAST_FUNC unpack_ar_archive(archive_handle_t *ar_archive) | |||
16 | } | 16 | } |
17 | ar_archive->offset += AR_MAGIC_LEN; | 17 | ar_archive->offset += AR_MAGIC_LEN; |
18 | 18 | ||
19 | while (get_header_ar(ar_archive) == EXIT_SUCCESS) | 19 | while (get_header_ar(ar_archive) == EXIT_SUCCESS) { |
20 | continue; | 20 | #if ENABLE_MAKE |
21 | free(ar_archive->file_header->name); | ||
22 | ar_archive->file_header->name = NULL; | ||
23 | #endif | ||
24 | } | ||
21 | } | 25 | } |