summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorGlenn L McGrath2001-10-13 07:11:03 +0000
committerGlenn L McGrath2001-10-13 07:11:03 +0000
commit051eee6ed3056145edeee14d7ab4de9e2f723164 (patch)
treec2ff214fe347fd56585339d391f417ac3a4afb95 /archival
parentd642a679281399cd82d851fb550af683009b99a2 (diff)
downloadbusybox-051eee6ed3056145edeee14d7ab4de9e2f723164.zip
busybox-051eee6ed3056145edeee14d7ab4de9e2f723164.tar.gz
Reverse part of previous change.... i think it was the wrong approach... im lost
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 018ccdc..1f8eb4b 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -504,11 +504,7 @@ static int writeTarFile(const char* tarName, int verboseFlag, char **argv,
void append_file_to_list(const char *new_name, char ***list, int *list_count)
{
*list = realloc(*list, sizeof(char *) * (*list_count + 2));
- if (last_char_is(new_name, '/')) {
- (*list)[*list_count] = concat_path_file(new_name, "*");
- } else {
- (*list)[*list_count] = xstrdup(new_name);
- }
+ (*list)[*list_count] = xstrdup(new_name);
(*list_count)++;
(*list)[*list_count] = NULL;
}