summaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/tar.c')
-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 */