From 8845adc545e4398d7ba03c1f286775ad37cdbd77 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 6 Jul 2000 22:51:35 +0000 Subject: * Fixed tar creation support when reading from stdin ('tar -cf - . ') thanks to Daniel Quinlan -Erik --- archival/tar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archival') diff --git a/archival/tar.c b/archival/tar.c index 611bbd9a0..af017d112 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -198,6 +198,8 @@ 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, "-")) + tostdoutFlag = TRUE; stopIt=TRUE; break; -- cgit v1.2.3