Reverse part of previous change.... i think it was the wrong approach... im lost
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 13 Oct 2001 07:11:03 +0000 (07:11 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 13 Oct 2001 07:11:03 +0000 (07:11 -0000)
archival/tar.c
tar.c

index 018ccdc11b155d0a6b4d1b7fa9115b12f4f2461a..1f8eb4bcb4781d2e41cf53b6f5d1e8fa73829d9c 100644 (file)
@@ -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;
 }
diff --git a/tar.c b/tar.c
index 018ccdc11b155d0a6b4d1b7fa9115b12f4f2461a..1f8eb4bcb4781d2e41cf53b6f5d1e8fa73829d9c 100644 (file)
--- a/tar.c
+++ b/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;
 }