From: Sergey Poznyakoff Date: Wed, 5 Jan 2005 17:30:36 +0000 (+0000) Subject: (parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks Mike Frysinger ... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2ad41b6fe05c67df09073ae8a17c9169fda2cb3d;p=chaz%2Ftar (parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks Mike Frysinger for reporting. --- diff --git a/src/tar.c b/src/tar.c index 74a177d..252bc67 100644 --- a/src/tar.c +++ b/src/tar.c @@ -617,9 +617,9 @@ parse_opt(int key, char *arg, struct argp_state *state) switch (key) { - case 1: + case ARGP_KEY_ARG: /* File name or non-parsed option, because of ARGP_IN_ORDER */ - name_add (optarg); + name_add (arg); args->input_files++; break;