[BusyBox-cvs] busybox/archival tar.c,1.183,1.184

Glenn McGrath bug1 at busybox.net
Thu Nov 20 10:47:08 UTC 2003


Update of /var/cvs/busybox/archival
In directory winder:/tmp/cvs-serv26109/archival

Modified Files:
	tar.c 
Log Message:
Fix tar-handles-nested-exclude testcase


Index: tar.c
===================================================================
RCS file: /var/cvs/busybox/archival/tar.c,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -d -r1.183 -r1.184
--- tar.c	20 Nov 2003 09:53:31 -0000	1.183
+++ tar.c	20 Nov 2003 10:46:58 -0000	1.184
@@ -731,6 +731,11 @@
 	/* Setup an array of filenames to work with */
 	/* TODO: This is the same as in ar, seperate function ? */
 	while (optind < argc) {
+		char *filename_ptr;
+		filename_ptr = last_char_is(argv[optind], '/');
+		if (filename_ptr) {
+			*filename_ptr = '\0';
+		}
 		tar_handle->accept = llist_add_to(tar_handle->accept, argv[optind]);
 		optind++;
 	}




More information about the busybox-cvs mailing list