Fix from Robert Kaiser for stdin behavior.
-Erik
This commit is contained in:
parent
1428c4f136
commit
d5704686b1
@ -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;
|
||||
|
2
tar.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user