ossp-pkg/lmtp2nntp/lmtp2nntp_main.c 1.56 -> 1.57
--- lmtp2nntp_main.c 2002/07/02 07:49:01 1.56
+++ lmtp2nntp_main.c 2003/01/30 15:19:55 1.57
@@ -464,14 +464,17 @@
/* read in the arguments */
{
- lmtp2nntp_option_rc_t rv;
+ lmtp2nntp_option_rc_t rvo;
+ lmtp2nntp_config_rc_t rvc;
if (option_create(&o, ctx->val) != OPTION_OK)
- CU(ERR_EXECUTION);
- rv = option_parse(o, argc, argv);
- config_context(ctx); /*FIXME rc */
- if (rv != OPTION_OK)
- CU(ERR_EXECUTION);
+ CU(ERR_EXECUTION);
+ rvo = option_parse(o, argc, argv);
+ rvc = config_context(ctx);
+ if (rvc == CONFIG_OK_DRY)
+ CU(0);
+ if (rvo != OPTION_OK || rvc != CONFIG_OK)
+ CU(ERR_EXECUTION);
}
if (getuid() != ctx->option_uid) {
|
|