From c1dd899e5588baff9afa86f04a1347b4a8da9a1a Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 18 Aug 2000 00:02:03 +0000 Subject: Warn that the ``alias'' command is depricated. We still process it for now though. --- usr.sbin/ppp/ppp/command.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ppp/ppp/command.c b/usr.sbin/ppp/ppp/command.c index 17416f3e5e7..a660cd7b793 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.48 2000/08/16 09:07:27 brian Exp $ + * $OpenBSD: command.c,v 1.49 2000/08/18 00:02:02 brian Exp $ * */ #include @@ -2623,6 +2623,16 @@ RunListCommand(struct cmdargs const *arg) { const char *cmd = arg->argc ? arg->argv[arg->argc - 1] : "???"; +#ifndef NONAT + if (arg->cmd->args == NatCommands && + tolower(*arg->argv[arg->argn - 1]) == 'a') { + if (arg->prompt) + prompt_Printf(arg->prompt, "The alias command is depricated\n"); + else + log_Printf(LogWARN, "The alias command is depricated\n"); + } +#endif + if (arg->argc > arg->argn) FindExec(arg->bundle, arg->cmd->args, arg->argc, arg->argn, arg->argv, arg->prompt, arg->cx); -- cgit v1.2.3