diff options
Diffstat (limited to 'tar.c')
-rw-r--r-- | tar.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -70,13 +70,13 @@ static const char tar_usage[] = | |||
70 | #endif | 70 | #endif |
71 | "\tx\t\textract\n" | 71 | "\tx\t\textract\n" |
72 | "\tt\t\tlist\n" | 72 | "\tt\t\tlist\n" |
73 | "File selection:\n" | 73 | "\nFile selection:\n" |
74 | "\tf\t\tname of tarfile or \"-\" for stdin\n" | 74 | "\tf\t\tname of tarfile or \"-\" for stdin\n" |
75 | "\tO\t\textract to stdout\n" | 75 | "\tO\t\textract to stdout\n" |
76 | #if defined BB_FEATURE_TAR_EXCLUDE | 76 | #if defined BB_FEATURE_TAR_EXCLUDE |
77 | "\t--exclude\tfile to exclude\n" | 77 | "\t--exclude\tfile to exclude\n" |
78 | #endif | 78 | #endif |
79 | "Informative output:\n" | 79 | "\nInformative output:\n" |
80 | "\tv\t\tverbosely list files processed\n" | 80 | "\tv\t\tverbosely list files processed\n" |
81 | ; | 81 | ; |
82 | 82 | ||
@@ -184,7 +184,7 @@ extern int tar_main(int argc, char **argv) | |||
184 | usage(tar_usage); | 184 | usage(tar_usage); |
185 | 185 | ||
186 | /* Parse any options */ | 186 | /* Parse any options */ |
187 | while (--argc > 0 && **(++argv) == '-') { | 187 | while (--argc > 0 && (**(++argv) != '\0')) { |
188 | stopIt=FALSE; | 188 | stopIt=FALSE; |
189 | while (stopIt==FALSE && *(++(*argv))) { | 189 | while (stopIt==FALSE && *(++(*argv))) { |
190 | switch (**argv) { | 190 | switch (**argv) { |
@@ -245,7 +245,6 @@ extern int tar_main(int argc, char **argv) | |||
245 | break; | 245 | break; |
246 | } | 246 | } |
247 | #endif | 247 | #endif |
248 | usage(tar_usage); | ||
249 | break; | 248 | break; |
250 | 249 | ||
251 | default: | 250 | default: |