From d5704686b14b9cd5ae588148269cad9d7f3f1e63 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 28 Jul 2000 15:20:24 +0000 Subject: [PATCH] Fix from Robert Kaiser for stdin behavior. -Erik --- archival/tar.c | 2 +- tar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archival/tar.c b/archival/tar.c index 6f18dc43f..3227ce5bd 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -167,7 +167,7 @@ extern int tar_main(int argc, char **argv) tarName = *(++argv); if (tarName == NULL) fatalError( "Option requires an argument: No file specified\n"); - if (!strcmp(tarName, "-")) + if (!strcmp(tarName, "-") && createFlag == TRUE) tostdoutFlag = TRUE; stopIt=TRUE; break; diff --git a/tar.c b/tar.c index 6f18dc43f..3227ce5bd 100644 --- a/tar.c +++ b/tar.c @@ -167,7 +167,7 @@ extern int tar_main(int argc, char **argv) tarName = *(++argv); if (tarName == NULL) fatalError( "Option requires an argument: No file specified\n"); - if (!strcmp(tarName, "-")) + if (!strcmp(tarName, "-") && createFlag == TRUE) tostdoutFlag = TRUE; stopIt=TRUE; break;