* Fixed tar creation support when reading from stdin ('tar -cf - . ')

thanks to Daniel Quinlan <quinlan@transmeta.com>
 -Erik
This commit is contained in:
Eric Andersen
2000-07-06 22:51:35 +00:00
parent 02bc25be56
commit 8845adc545
3 changed files with 6 additions and 0 deletions

2
tar.c
View File

@@ -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;