diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-24 19:59:46 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-24 19:59:46 +0000 |
commit | c689a95d57e1b53c882fbe6067ea0738ecbef704 (patch) | |
tree | dfb66a963ca4a0fc1af4563dacda4ac72a52c4bb /fastjar/jartool.c | |
parent | cd7b00cef075f19ef45c3ea5d7b24b293b7c6709 (diff) | |
download | gcc-c689a95d57e1b53c882fbe6067ea0738ecbef704.tar.gz |
jar -C fix
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fastjar/jartool.c')
-rw-r--r-- | fastjar/jartool.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fastjar/jartool.c b/fastjar/jartool.c index afd08a758f2..bd5d1fc43a3 100644 --- a/fastjar/jartool.c +++ b/fastjar/jartool.c @@ -303,8 +303,8 @@ int number_of_entries; /* number of entries in the linked list */ #define OPT_HELP LONG_OPT (0) -/* This holds all options except `-C', which is handled specially. */ -#define OPTION_STRING "-ctxuvVf:m:0ME@" +/* This holds all options. */ +#define OPTION_STRING "-ctxuvVf:m:C:0ME@" static const struct option options[] = { @@ -348,9 +348,11 @@ int main(int argc, char **argv){ while ((opt = getopt_long (argc, argv, OPTION_STRING, options, NULL)) != -1) { switch(opt){ + case 'C': + new_argv[new_argc++] = (char *) "-C"; + /* ... fall through ... */ case 1: - /* File name or unparsed option, due to RETURN_IN_ORDER. In - particular `-C' is handled here and not elsewhere. */ + /* File name or unparsed option, due to RETURN_IN_ORDER. */ new_argv[new_argc++] = optarg; break; case 'c': |