diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-13 07:11:03 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-13 07:11:03 +0000 |
commit | 48269e8e47f1efb159ea7d8f1fb8cc3ad4646be6 (patch) | |
tree | c2ff214fe347fd56585339d391f417ac3a4afb95 | |
parent | 0d869175b48a033c39979887a4db19f93a0e69be (diff) | |
download | busybox-w32-48269e8e47f1efb159ea7d8f1fb8cc3ad4646be6.tar.gz busybox-w32-48269e8e47f1efb159ea7d8f1fb8cc3ad4646be6.tar.bz2 busybox-w32-48269e8e47f1efb159ea7d8f1fb8cc3ad4646be6.zip |
Reverse part of previous change.... i think it was the wrong approach... im lost
git-svn-id: svn://busybox.net/trunk/busybox@3515 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | archival/tar.c | 6 | ||||
-rw-r--r-- | tar.c | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/archival/tar.c b/archival/tar.c index 018ccdc11..1f8eb4bcb 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -504,11 +504,7 @@ static int writeTarFile(const char* tarName, int verboseFlag, char **argv, | |||
504 | void append_file_to_list(const char *new_name, char ***list, int *list_count) | 504 | void append_file_to_list(const char *new_name, char ***list, int *list_count) |
505 | { | 505 | { |
506 | *list = realloc(*list, sizeof(char *) * (*list_count + 2)); | 506 | *list = realloc(*list, sizeof(char *) * (*list_count + 2)); |
507 | if (last_char_is(new_name, '/')) { | 507 | (*list)[*list_count] = xstrdup(new_name); |
508 | (*list)[*list_count] = concat_path_file(new_name, "*"); | ||
509 | } else { | ||
510 | (*list)[*list_count] = xstrdup(new_name); | ||
511 | } | ||
512 | (*list_count)++; | 508 | (*list_count)++; |
513 | (*list)[*list_count] = NULL; | 509 | (*list)[*list_count] = NULL; |
514 | } | 510 | } |
@@ -504,11 +504,7 @@ static int writeTarFile(const char* tarName, int verboseFlag, char **argv, | |||
504 | void append_file_to_list(const char *new_name, char ***list, int *list_count) | 504 | void append_file_to_list(const char *new_name, char ***list, int *list_count) |
505 | { | 505 | { |
506 | *list = realloc(*list, sizeof(char *) * (*list_count + 2)); | 506 | *list = realloc(*list, sizeof(char *) * (*list_count + 2)); |
507 | if (last_char_is(new_name, '/')) { | 507 | (*list)[*list_count] = xstrdup(new_name); |
508 | (*list)[*list_count] = concat_path_file(new_name, "*"); | ||
509 | } else { | ||
510 | (*list)[*list_count] = xstrdup(new_name); | ||
511 | } | ||
512 | (*list_count)++; | 508 | (*list_count)++; |
513 | (*list)[*list_count] = NULL; | 509 | (*list)[*list_count] = NULL; |
514 | } | 510 | } |