aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-04-13 03:30:30 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-04-13 03:30:30 +0000
commitb16cd4d28cdf9bf16fdbe892b82b88f467088509 (patch)
treed0dcb3e5e843f3ce8b2b39871094c3aaa777bce9 /options.c
parentAllow "management-client" directive to be used (diff)
downloadopenvpn-b16cd4d28cdf9bf16fdbe892b82b88f467088509.tar.xz
Added errors-to-stderr option. When enabled, fatal errors
that result in the termination of the daemon will be written to stderr. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4131 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'options.c')
-rw-r--r--options.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/options.c b/options.c
index f2c7da8..cd73d92 100644
--- a/options.c
+++ b/options.c
@@ -2669,7 +2669,7 @@ auth_retry_print (void)
static void
usage (void)
{
- FILE *fp = msg_fp();
+ FILE *fp = msg_fp(0);
#ifdef ENABLE_SMALL
@@ -3859,6 +3859,11 @@ add_option (struct options *options,
VERIFY_PERMISSION (OPT_P_MESSAGES);
options->mute = positive_atoi (p[1]);
}
+ else if (streq (p[0], "errors-to-stderr"))
+ {
+ VERIFY_PERMISSION (OPT_P_MESSAGES);
+ errors_to_stderr();
+ }
else if (streq (p[0], "status") && p[1])
{
VERIFY_PERMISSION (OPT_P_GENERAL);