* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#define RCSID "$Id: options.c,v 1.72 2000/04/04 07:06:52 paulus Exp $"
+#define RCSID "$Id: options.c,v 1.73 2000/04/13 12:05:16 paulus Exp $"
#include <ctype.h>
#include <stdio.h>
int privileged_option; /* set iff the current option came from root */
char *option_source; /* string saying where the option came from */
bool log_to_file; /* log_to_fd is a file opened by us */
+bool log_to_specific_fd; /* log_to_fd was specified by user option */
/*
* Prototypes
{ "sync", o_bool, &sync_serial,
"Use synchronous HDLC serial encoding", 1 },
{ "logfd", o_int, &log_to_fd,
- "Send log messages to this file descriptor" },
+ "Send log messages to this file descriptor",
+ 0, &log_to_specific_fd },
{ "logfile", o_special, setlogfile,
"Append log messages to this file" },
{ "nolog", o_int, &log_to_fd,
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: pppd.h,v 1.52 2000/04/04 07:06:53 paulus Exp $
+ * $Id: pppd.h,v 1.53 2000/04/13 12:05:15 paulus Exp $
*/
/*
extern int link_connect_time; /* time the link was up for */
extern int using_pty; /* using pty as device (notty or pty opt.) */
extern int log_to_fd; /* logging to this fd as well as syslog */
+extern bool log_to_file; /* log_to_fd is a file */
+extern bool log_to_specific_fd; /* log_to_fd was specified by user */
extern char *no_ppp_msg; /* message to print if ppp not in kernel */
extern volatile int status; /* exit status for pppd */
extern int devnam_fixed; /* can no longer change devnam */