From 4f380fde8de0efa16879edc20885396f3a7433e9 Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 17 Dec 1997 21:21:42 +0000 Subject: o Log ******** instead of the actual password for "set authkey" when command logging is switched on. o Display ******** for the authkey for "show auth" o Document how \P should be used, and document the other chat escapes while I'm there. o Make sure the full command is displayed when a compound command fails - ie, "set novar rubbish" should say "set novar: Invalid command" rather than "novar: Invalid command" Problem pointed out by: Theo de Raadt (among others) --- usr.sbin/ppp/systems.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp/systems.c') diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index 7fe81b3..5673add 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: systems.c,v 1.28 1997/11/22 03:37:51 brian Exp $ + * $Id: systems.c,v 1.29 1997/12/15 20:21:47 brian Exp $ * * TODO: */ @@ -217,7 +217,7 @@ AllowModes(struct cmdargs const *arg) break; } if (modes[m].mode == 0) - LogPrintf(LogWARN, "%s: Invalid mode\n", arg->argv[f]); + LogPrintf(LogWARN, "allow modes: %s: Invalid mode\n", arg->argv[f]); } modeok = (mode | allowed) == allowed ? 1 : 0; @@ -353,7 +353,7 @@ LoadCommand(struct cmdargs const *arg) LogPrintf(LogERROR, "%s: Label not allowed\n", name); return 1; } else if (SelectSystem(name, CONFFILE) < 0) { - LogPrintf(LogWARN, "%s: not found.\n", name); + LogPrintf(LogWARN, "%s: label not found.\n", name); return -1; } else SetLabel(arg->argc ? name : NULL); -- cgit v1.1