commit | 8845adc545e4398d7ba03c1f286775ad37cdbd77 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Thu Jul 06 22:51:35 2000 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Thu Jul 06 22:51:35 2000 +0000 |
tree | 9170754e49961f4473b60a8c9dc9cc2d6f3c5f1f | |
parent | 02bc25be56606b3a6c66225687f848f8968a5dff [diff] [blame] |
* Fixed tar creation support when reading from stdin ('tar -cf - . ') thanks to Daniel Quinlan <quinlan@transmeta.com> -Erik
diff --git a/tar.c b/tar.c index 611bbd9..af017d1 100644 --- a/tar.c +++ b/tar.c
@@ -198,6 +198,8 @@ tarName = *(++argv); if (tarName == NULL) fatalError( "Option requires an argument: No file specified\n"); + if (!strcmp(tarName, "-")) + tostdoutFlag = TRUE; stopIt=TRUE; break;