summaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
authorGlenn L McGrath2002-02-15 05:15:03 +0000
committerGlenn L McGrath2002-02-15 05:15:03 +0000
commit02a415606cc650f8f96586b737c16694eceb5bf7 (patch)
tree6fbbdc61ec25d9c2ee11367e3a0c7b5e17a13f10 /archival/tar.c
parent8833a51781f4659045b37017f6e2239cf64fc36b (diff)
downloadbusybox-02a415606cc650f8f96586b737c16694eceb5bf7.zip
busybox-02a415606cc650f8f96586b737c16694eceb5bf7.tar.gz
Parse the include list to writeTarFile rather than argv, fixes a bug where tar files wernt being created.
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 7662f4b..191e2a8 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -684,7 +684,6 @@ int tar_main(int argc, char **argv)
append_file_to_list(argv[optind], &include_list, &include_list_count);
optind++;
}
-
if (extract_function & (extract_list | extract_all_to_fs)) {
if (dst_prefix == NULL) {
dst_prefix = xstrdup("./");
@@ -721,7 +720,7 @@ int tar_main(int argc, char **argv)
if (extract_function & extract_verbose_list) {
verboseFlag = TRUE;
}
- writeTarFile(src_filename, verboseFlag, &argv[argc - 1], include_list);
+ writeTarFile(src_filename, verboseFlag, include_list, exclude_list);
}
#endif // CONFIG_FEATURE_TAR_CREATE