summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2000-08-18 00:02:03 +0000
committerbrian <brian@cvs.openbsd.org>2000-08-18 00:02:03 +0000
commitc1dd899e5588baff9afa86f04a1347b4a8da9a1a (patch)
tree5671c7800f5f65008482cd3d0482ab6f563e5998 /usr.sbin/ppp
parentabce56b405bff7fc97f0adf44cd0a19c9eba67f3 (diff)
Warn that the ``alias'' command is depricated.
We still process it for now though.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/ppp/command.c12
1 files changed, 11 insertions, 1 deletions
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 <sys/param.h>
@@ -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);