summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorMatt Kraai2003-05-18 21:12:36 +0000
committerMatt Kraai2003-05-18 21:12:36 +0000
commit0861e828d028cdb6ad0798143a88c9eb6fabb631 (patch)
tree58a8a0d53b85c8c15b69f2bfaa6fd4cc87a92d9a /archival
parent900c8f3362c4f694fea300c4f36322271659ff87 (diff)
downloadbusybox-0861e828d028cdb6ad0798143a88c9eb6fabb631.zip
busybox-0861e828d028cdb6ad0798143a88c9eb6fabb631.tar.gz
Handle -O preceding -x.
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 00f9f87..29244d4 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -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 */