Handle -O preceding -x.
This commit is contained in:
parent
900c8f3362
commit
0861e828d0
@ -645,7 +645,9 @@ int tar_main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case 'x':
|
case 'x':
|
||||||
ctx_flag |= CTX_EXTRACT;
|
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;
|
break;
|
||||||
|
|
||||||
/* These are optional */
|
/* These are optional */
|
||||||
|
3
testsuite/tar/tar-extracts-to-standard-output
Normal file
3
testsuite/tar/tar-extracts-to-standard-output
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
echo foo > foo
|
||||||
|
tar cf foo.tar foo
|
||||||
|
cat foo.tar | busybox tar Ox | cmp foo -
|
Loading…
Reference in New Issue
Block a user