summaryrefslogtreecommitdiff
path: root/sysdep/unix/main.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2020-05-31 13:21:55 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2020-06-03 14:59:20 +0200
commitfae5448134dfec004be818d18ff1583cc61e5549 (patch)
tree1f305c8c5b8059dcb4fb490752413c7075efdcce /sysdep/unix/main.c
parenteee8af4db2d36a5017eac4447075cac3346e8b23 (diff)
Log: Do not open logfiles when parse-and-exit option is active
This is a quick workaround for an issue where configured logfiles are opened/created during parsing of a config file even when parse-and-exit option is active. We should later refactor the logging code to avoid opening log during parsing altogether.
Diffstat (limited to 'sysdep/unix/main.c')
-rw-r--r--sysdep/unix/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index 1d258f4c..2c7e3cef 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -658,7 +658,7 @@ signal_init(void)
*/
static char *opt_list = "bc:dD:ps:P:u:g:flRh";
-static int parse_and_exit;
+int parse_and_exit;
char *bird_name;
static char *use_user;
static char *use_group;