From: Frank Cusack Date: Sun, 27 Oct 2002 13:00:13 +0000 (+0000) Subject: Set current_option for error reporting. Bug and fix by Clive Nicolson. X-Git-Tag: ppp-2.4.7~362 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=aefcf5ac90dee434d605167b6a719c58c0ffcf03 Set current_option for error reporting. Bug and fix by Clive Nicolson. --- diff --git a/pppd/options.c b/pppd/options.c index 109bfa6..1e31ed5 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: options.c,v 1.88 2002/09/24 11:35:22 fcusack Exp $" +#define RCSID "$Id: options.c,v 1.89 2002/10/27 13:00:13 fcusack Exp $" #include #include @@ -602,6 +602,7 @@ process_option(opt, cmd, argv) int prio = option_priority; option_t *mainopt = opt; + current_option = opt->name; if ((opt->flags & OPT_PRIVFIX) && privileged_option) prio += OPRIO_ROOT; while (mainopt->flags & OPT_PRIOSUB)