Disable inetd check after options parse

Mode was checked lated so move check to possibly correct place
 and disable it
This commit is contained in:
Max N. Boyarov 2016-11-02 21:53:36 +03:00
parent 59e7a8ddaf
commit ad1776c805

View File

@ -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 */ /* Expression checker use it, so init first */
init_state(&state); 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 /* if( (rc = log_open(BFORCE_LOGFILE, NULL, NULL)) ) //compiled in
{ {
log("can't continue without logging"); log("can't continue without logging");