diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-13 07:11:03 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-13 07:11:03 +0000 |
commit | 051eee6ed3056145edeee14d7ab4de9e2f723164 (patch) | |
tree | c2ff214fe347fd56585339d391f417ac3a4afb95 | |
parent | d642a679281399cd82d851fb550af683009b99a2 (diff) | |
download | busybox-w32-051eee6ed3056145edeee14d7ab4de9e2f723164.tar.gz busybox-w32-051eee6ed3056145edeee14d7ab4de9e2f723164.tar.bz2 busybox-w32-051eee6ed3056145edeee14d7ab4de9e2f723164.zip |
Reverse part of previous change.... i think it was the wrong approach... im lost
-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 | } |