diff options
author | brian <brian@cvs.openbsd.org> | 2000-04-02 01:36:26 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 2000-04-02 01:36:26 +0000 |
commit | 4f6b5af467301b38639b4b79ed8feeb881f28151 (patch) | |
tree | 57a1bcee934540f7e83753648fa160640d4b5e65 | |
parent | 5de001443e0d0c04131e682bfb3f032db0ddf760 (diff) |
Allow ``set authname'' in any phase, just warn if we're not
in DEAD or ESTABLISH.
-rw-r--r-- | usr.sbin/ppp/ppp/command.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/ppp/command.c b/usr.sbin/ppp/ppp/command.c index 93dfb40f866..fa862fa0eff 100644 --- a/usr.sbin/ppp/ppp/command.c +++ b/usr.sbin/ppp/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $OpenBSD: command.c,v 1.40 2000/03/31 14:32:50 brian Exp $ + * $OpenBSD: command.c,v 1.41 2000/04/02 01:36:25 brian Exp $ * */ #include <sys/param.h> @@ -1457,16 +1457,16 @@ SetVariable(struct cmdargs const *arg) case VAR_AUTHNAME: switch (bundle_Phase(arg->bundle)) { + default: + log_Printf(LogWARN, "Altering authname while at phase %s\n", + bundle_PhaseName(arg->bundle)); + /* drop through */ case PHASE_DEAD: case PHASE_ESTABLISH: strncpy(arg->bundle->cfg.auth.name, argp, sizeof arg->bundle->cfg.auth.name - 1); arg->bundle->cfg.auth.name[sizeof arg->bundle->cfg.auth.name-1] = '\0'; break; - default: - err = "set authname: Only available at phase DEAD/ESTABLISH\n"; - log_Printf(LogWARN, err); - break; } break; |