aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-04-02 09:24:14 +0100
committerRon Yorston <rmy@pobox.com>2018-04-02 09:24:14 +0100
commit34a68d327b42c3c700e84cd475496985782290b1 (patch)
tree99bfe59cca420d26f01e81a7f41763f71b44d22c /archival
parentaff3c5bd7b6bdcfb97f63153ab839c5f55f16a12 (diff)
parente84212f8346741a2d4a04b40639c44fe519cf5a7 (diff)
downloadbusybox-w32-34a68d327b42c3c700e84cd475496985782290b1.tar.gz
busybox-w32-34a68d327b42c3c700e84cd475496985782290b1.tar.bz2
busybox-w32-34a68d327b42c3c700e84cd475496985782290b1.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'archival')
-rw-r--r--archival/cpio.c2
-rw-r--r--archival/libarchive/data_extract_to_command.c2
-rw-r--r--archival/tar.c16
3 files changed, 11 insertions, 9 deletions
diff --git a/archival/cpio.c b/archival/cpio.c
index 1d6cbd1e2..308ec1b25 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -508,6 +508,8 @@ int cpio_main(int argc UNUSED_PARAM, char **argv)
508 while (get_header_cpio(archive_handle) == EXIT_SUCCESS) 508 while (get_header_cpio(archive_handle) == EXIT_SUCCESS)
509 continue; 509 continue;
510 510
511 create_symlinks_from_list(archive_handle->symlink_placeholders);
512
511 if (archive_handle->cpio__blocks != (off_t)-1 513 if (archive_handle->cpio__blocks != (off_t)-1
512 && !(opt & OPT_QUIET) 514 && !(opt & OPT_QUIET)
513 ) { 515 ) {
diff --git a/archival/libarchive/data_extract_to_command.c b/archival/libarchive/data_extract_to_command.c
index 1114a95cb..0fcabb4a9 100644
--- a/archival/libarchive/data_extract_to_command.c
+++ b/archival/libarchive/data_extract_to_command.c
@@ -37,7 +37,7 @@ static const char *const tar_var[] = {
37static void xputenv(char *str) 37static void xputenv(char *str)
38{ 38{
39 if (putenv(str)) 39 if (putenv(str))
40 bb_error_msg_and_die(bb_msg_memory_exhausted); 40 bb_die_memory_exhausted();
41} 41}
42 42
43static void str2env(char *env[], int idx, const char *str) 43static void str2env(char *env[], int idx, const char *str)
diff --git a/archival/tar.c b/archival/tar.c
index d0684b69e..308ce7701 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -792,7 +792,7 @@ static llist_t *append_file_list_to_list(llist_t *list)
792//usage: IF_FEATURE_SEAMLESS_LZMA("a") 792//usage: IF_FEATURE_SEAMLESS_LZMA("a")
793//usage: IF_FEATURE_TAR_CREATE("h") 793//usage: IF_FEATURE_TAR_CREATE("h")
794//usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m") 794//usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m")
795//usage: "vO] " 795//usage: "vokO] "
796//usage: "[-f TARFILE] [-C DIR] " 796//usage: "[-f TARFILE] [-C DIR] "
797//usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[--exclude PATTERN]... ")) 797//usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[--exclude PATTERN]... "))
798//usage: "[FILE]..." 798//usage: "[FILE]..."
@@ -809,6 +809,13 @@ static llist_t *append_file_list_to_list(llist_t *list)
809//usage: "\n -f FILE Name of TARFILE ('-' for stdin/out)" 809//usage: "\n -f FILE Name of TARFILE ('-' for stdin/out)"
810//usage: "\n -C DIR Change to DIR before operation" 810//usage: "\n -C DIR Change to DIR before operation"
811//usage: "\n -v Verbose" 811//usage: "\n -v Verbose"
812//usage: "\n -O Extract to stdout"
813//usage: IF_FEATURE_TAR_NOPRESERVE_TIME(
814//usage: "\n -m Don't restore mtime"
815//usage: )
816//usage: "\n -o Don't restore user:group"
817///////:-p - accepted but ignored, restores mode (aliases in GNU tar: --preserve-permissions, --same-permissions)
818//usage: "\n -k Don't replace existing files"
812//usage: IF_FEATURE_SEAMLESS_Z( 819//usage: IF_FEATURE_SEAMLESS_Z(
813//usage: "\n -Z (De)compress using compress" 820//usage: "\n -Z (De)compress using compress"
814//usage: ) 821//usage: )
@@ -824,13 +831,9 @@ static llist_t *append_file_list_to_list(llist_t *list)
824//usage: IF_FEATURE_SEAMLESS_LZMA( 831//usage: IF_FEATURE_SEAMLESS_LZMA(
825//usage: "\n -a (De)compress using lzma" 832//usage: "\n -a (De)compress using lzma"
826//usage: ) 833//usage: )
827//usage: "\n -O Extract to stdout"
828//usage: IF_FEATURE_TAR_CREATE( 834//usage: IF_FEATURE_TAR_CREATE(
829//usage: "\n -h Follow symlinks" 835//usage: "\n -h Follow symlinks"
830//usage: ) 836//usage: )
831//usage: IF_FEATURE_TAR_NOPRESERVE_TIME(
832//usage: "\n -m Don't restore mtime"
833//usage: )
834//usage: IF_FEATURE_TAR_FROM( 837//usage: IF_FEATURE_TAR_FROM(
835//usage: "\n -T FILE File with names to include" 838//usage: "\n -T FILE File with names to include"
836//usage: "\n -X FILE File with glob patterns to exclude" 839//usage: "\n -X FILE File with glob patterns to exclude"
@@ -844,9 +847,6 @@ static llist_t *append_file_list_to_list(llist_t *list)
844//usage: "$ tar -cf /tmp/tarball.tar /usr/local\n" 847//usage: "$ tar -cf /tmp/tarball.tar /usr/local\n"
845 848
846// Supported but aren't in --help: 849// Supported but aren't in --help:
847// o no-same-owner
848// p same-permissions
849// k keep-old
850// no-recursion 850// no-recursion
851// numeric-owner 851// numeric-owner
852// no-same-permissions 852// no-same-permissions