aboutsummaryrefslogtreecommitdiff
path: root/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'tar.c')
-rw-r--r--tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar.c b/tar.c
index 6f18dc43f..3227ce5bd 100644
--- a/tar.c
+++ b/tar.c
@@ -167,7 +167,7 @@ extern int tar_main(int argc, char **argv)
167 tarName = *(++argv); 167 tarName = *(++argv);
168 if (tarName == NULL) 168 if (tarName == NULL)
169 fatalError( "Option requires an argument: No file specified\n"); 169 fatalError( "Option requires an argument: No file specified\n");
170 if (!strcmp(tarName, "-")) 170 if (!strcmp(tarName, "-") && createFlag == TRUE)
171 tostdoutFlag = TRUE; 171 tostdoutFlag = TRUE;
172 stopIt=TRUE; 172 stopIt=TRUE;
173 break; 173 break;