aboutsummaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c
index c8a2bd385..b3fa447f2 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -731,6 +731,11 @@ int tar_main(int argc, char **argv)
731 /* Setup an array of filenames to work with */ 731 /* Setup an array of filenames to work with */
732 /* TODO: This is the same as in ar, seperate function ? */ 732 /* TODO: This is the same as in ar, seperate function ? */
733 while (optind < argc) { 733 while (optind < argc) {
734 char *filename_ptr;
735 filename_ptr = last_char_is(argv[optind], '/');
736 if (filename_ptr) {
737 *filename_ptr = '\0';
738 }
734 tar_handle->accept = llist_add_to(tar_handle->accept, argv[optind]); 739 tar_handle->accept = llist_add_to(tar_handle->accept, argv[optind]);
735 optind++; 740 optind++;
736 } 741 }