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);
|
tarName = *(++argv);
|
||||||
if (tarName == NULL)
|
if (tarName == NULL)
|
||||||
fatalError( "Option requires an argument: No file specified\n");
|
fatalError( "Option requires an argument: No file specified\n");
|
||||||
if (!strcmp(tarName, "-"))
|
if (!strcmp(tarName, "-") && createFlag == TRUE)
|
||||||
tostdoutFlag = TRUE;
|
tostdoutFlag = TRUE;
|
||||||
stopIt=TRUE;
|
stopIt=TRUE;
|
||||||
break;
|
break;
|
||||||
|
2
tar.c
2
tar.c
@ -167,7 +167,7 @@ extern int tar_main(int argc, char **argv)
|
|||||||
tarName = *(++argv);
|
tarName = *(++argv);
|
||||||
if (tarName == NULL)
|
if (tarName == NULL)
|
||||||
fatalError( "Option requires an argument: No file specified\n");
|
fatalError( "Option requires an argument: No file specified\n");
|
||||||
if (!strcmp(tarName, "-"))
|
if (!strcmp(tarName, "-") && createFlag == TRUE)
|
||||||
tostdoutFlag = TRUE;
|
tostdoutFlag = TRUE;
|
||||||
stopIt=TRUE;
|
stopIt=TRUE;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user