summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libarchive/test/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libarchive/test/main.c b/lib/libarchive/test/main.c
index 6322f6f..4927ba0 100644
--- a/lib/libarchive/test/main.c
+++ b/lib/libarchive/test/main.c
@@ -975,9 +975,10 @@ int main(int argc, char **argv)
*/
++argv; --argc;/* Skip program name */
while (*argv != NULL) {
+ if (**argv != '-')
+ break;
p = *argv++;
- if (*p++ != '-')
- usage(progname);
+ ++p; /* Skip '-' */
while (*p != '\0') {
option = *p++;
option_arg = NULL;
OpenPOWER on IntegriCloud