diff options
author | Werner Koch <wk@gnupg.org> | 2010-08-20 14:18:38 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-08-20 14:18:38 +0200 |
commit | 15330f36a72a98db06e7e3e8ea2204645a5c470b (patch) | |
tree | 53a98514afe9a0f654fffdc0d2cf966ced285d06 /tools/gpgconf.c | |
parent | Prepare for gpg-error change (diff) | |
download | gnupg2-15330f36a72a98db06e7e3e8ea2204645a5c470b.tar.xz gnupg2-15330f36a72a98db06e7e3e8ea2204645a5c470b.zip |
Reworked the posix and w32 exechelpers.
Diffstat (limited to '')
-rw-r--r-- | tools/gpgconf.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c index fc10fbc75..222bc48f8 100644 --- a/tools/gpgconf.c +++ b/tools/gpgconf.c @@ -226,15 +226,18 @@ main (int argc, char **argv) es_putc ('\n', es_stderr); exit (1); } - gc_component_retrieve_options (idx); - if (gc_process_gpgconf_conf (NULL, 1, 0, NULL)) - exit (1); - if (cmd == aListOptions) - gc_component_list_options (idx, get_outfp (&outfp)); - else if (cmd == aChangeOptions) - gc_component_change_options (idx, es_stdin, get_outfp (&outfp)); - else + if (cmd == aCheckOptions) gc_component_check_options (idx, get_outfp (&outfp), NULL); + else + { + gc_component_retrieve_options (idx); + if (gc_process_gpgconf_conf (NULL, 1, 0, NULL)) + exit (1); + if (cmd == aListOptions) + gc_component_list_options (idx, get_outfp (&outfp)); + else if (cmd == aChangeOptions) + gc_component_change_options (idx, es_stdin, get_outfp (&outfp)); + } } break; |