summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-08-20 14:18:38 +0200
committerWerner Koch <wk@gnupg.org>2010-08-20 14:18:38 +0200
commit15330f36a72a98db06e7e3e8ea2204645a5c470b (patch)
tree53a98514afe9a0f654fffdc0d2cf966ced285d06 /tools/gpgconf.c
parentPrepare for gpg-error change (diff)
downloadgnupg2-15330f36a72a98db06e7e3e8ea2204645a5c470b.tar.xz
gnupg2-15330f36a72a98db06e7e3e8ea2204645a5c470b.zip
Reworked the posix and w32 exechelpers.
Diffstat (limited to '')
-rw-r--r--tools/gpgconf.c19
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;