[BusyBox] tar include/exclude interaction broken

Glenn McGrath bug1 at optushome.com.au
Sat Oct 13 13:50:36 UTC 2001


Well, unarchive is looking a tad overloaded now with 7 arguments

char *unarchive(FILE *src_stream, FILE *out_stream, file_header_t
*(*get_headers)(FILE *),
	const int extract_function, const char *prefix, char **include_name, char
**exclude_name)

but it doesn now produce 

PASS: tar-demands-at-least-one-ctx
PASS: tar-demands-at-most-one-ctx
PASS: tar-extracts-file
XFAIL: tar-handles-cz-options
PASS: tar-handles-empty-include-and-non-empty-exclude-list
PASS: tar-handles-exclude-and-extract-lists
PASS: tar-handles-multiple-X-options
UPASS: tar-handles-nested-exclud

And actually i think its turned out easier to handle both lists in unarchive
rather than having to manipulate them prior to extraction.

Even though it passes the test the logic still may be flawed, im not sure i
really understand how tar does it myself.

I havent tested its impact on cpio yet, but it should be right :)


Glenn





More information about the busybox mailing list