Handle -O preceding -x.

This commit is contained in:
Matt Kraai 2003-05-18 21:12:36 +00:00
parent 900c8f3362
commit 0861e828d0
2 changed files with 6 additions and 1 deletions

View File

@ -645,7 +645,9 @@ int tar_main(int argc, char **argv)
break;
case 'x':
ctx_flag |= CTX_EXTRACT;
tar_handle->action_data = data_extract_all;
if (tar_handle->action_data != data_extract_to_stdout) {
tar_handle->action_data = data_extract_all;
}
break;
/* These are optional */

View File

@ -0,0 +1,3 @@
echo foo > foo
tar cf foo.tar foo
cat foo.tar | busybox tar Ox | cmp foo -