mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
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;
|
||||
case 'x':
|
||||
ctx_flag |= CTX_EXTRACT;
|
||||
if (tar_handle->action_data != data_extract_to_stdout) {
|
||||
tar_handle->action_data = data_extract_all;
|
||||
}
|
||||
break;
|
||||
|
||||
/* 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