unnecessary openlog from sys_init in sys_linux.c
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#define RCSID "$Id: main.c,v 1.103 2001/03/08 05:11:14 paulus Exp $"
+#define RCSID "$Id: main.c,v 1.104 2001/03/09 00:55:14 paulus Exp $"
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
if (the_channel->process_extra_options)
(*the_channel->process_extra_options)();
if (the_channel->process_extra_options)
(*the_channel->process_extra_options)();
- if (dump_options || dryrun) {
- init_pr_log(NULL, LOG_INFO);
- print_options(pr_log, NULL);
- end_pr_log();
- }
+ if (debug)
+ setlogmask(LOG_UPTO(LOG_DEBUG));
/*
* Check that we are running as root.
/*
* Check that we are running as root.
if (the_channel->check_options)
(*the_channel->check_options)();
if (the_channel->check_options)
(*the_channel->check_options)();
+
+ if (dump_options || dryrun) {
+ init_pr_log(NULL, LOG_INFO);
+ print_options(pr_log, NULL);
+ end_pr_log();
+ if (dryrun)
+ die(0);
+ }
+
/*
* Initialize system-dependent stuff.
*/
sys_init();
/*
* Initialize system-dependent stuff.
*/
sys_init();
- if (debug)
- setlogmask(LOG_UPTO(LOG_DEBUG));
-
- if (dryrun)
- die(0);
pppdb = tdb_open(_PATH_PPPDB, 0, 0, O_RDWR|O_CREAT, 0644);
if (pppdb != NULL) {
pppdb = tdb_open(_PATH_PPPDB, 0, 0, O_RDWR|O_CREAT, 0644);
if (pppdb != NULL) {
- openlog("pppd", LOG_PID | LOG_NDELAY, LOG_PPP);
- setlogmask(LOG_UPTO(LOG_INFO));
- if (debug)
- setlogmask(LOG_UPTO(LOG_DEBUG));
-
if (new_style_driver) {
ppp_dev_fd = open("/dev/ppp", O_RDWR);
if (ppp_dev_fd < 0)
if (new_style_driver) {
ppp_dev_fd = open("/dev/ppp", O_RDWR);
if (ppp_dev_fd < 0)