From 0861e828d028cdb6ad0798143a88c9eb6fabb631 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Sun, 18 May 2003 21:12:36 +0000 Subject: Handle -O preceding -x. --- archival/tar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'archival') diff --git a/archival/tar.c b/archival/tar.c index 00f9f87af..29244d4bf 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 */ -- cgit v1.2.3