From ad1776c8050f0798e3210fd1cde1b4399a548beb Mon Sep 17 00:00:00 2001 From: "Max N. Boyarov" Date: Wed, 2 Nov 2016 21:53:36 +0300 Subject: [PATCH] Disable inetd check after options parse Mode was checked lated so move check to possibly correct place and disable it --- source/bforce/bforce.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/source/bforce/bforce.c b/source/bforce/bforce.c index 0e2acb6..1b1f9f0 100644 --- a/source/bforce/bforce.c +++ b/source/bforce/bforce.c @@ -334,11 +334,6 @@ int main(int argc, char *argv[], char *envp[]) } } - if( opts.inetd && opts.runmode != MODE_ANSWER && opts.runmode != MODE_CALL_STDIO ) - { - usage(); - exit(BFERR_FATALERROR); - } /* Expression checker use it, so init first */ init_state(&state); @@ -423,6 +418,15 @@ int main(int argc, char *argv[], char *envp[]) } } + /* + if( opts.inetd && opts.runmode != MODE_ANSWER && opts.runmode != MODE_CALL_STDIO ) + { + usage(); + exit(BFERR_FATALERROR); + } + */ + + /* if( (rc = log_open(BFORCE_LOGFILE, NULL, NULL)) ) //compiled in { log("can't continue without logging");