summaryrefslogtreecommitdiffhomepage
path: root/archival
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-28 15:20:24 +0000
committerEric Andersen <andersen@codepoet.org>2000-07-28 15:20:24 +0000
commitd5704686b14b9cd5ae588148269cad9d7f3f1e63 (patch)
tree1da97a42967f0df7228b9a3740c9471abb344e5c /archival
parent1428c4f13679935682a7c0d6d8193499afe20284 (diff)
Fix from Robert Kaiser for stdin behavior.
-Erik
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c2
1 files changed, 1 insertions, 1 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;