diff options
author | brian <brian@FreeBSD.org> | 2000-08-18 00:01:30 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-08-18 00:01:30 +0000 |
commit | c0049c3df2bfda77644542cc72cd5d7949841805 (patch) | |
tree | bd9e3a08af90915b5e9640c479622982bf5776f3 /usr.sbin/ppp | |
parent | 02abf95d85457fd0123e7cccabc5b64b3efae15d (diff) | |
download | FreeBSD-src-c0049c3df2bfda77644542cc72cd5d7949841805.zip FreeBSD-src-c0049c3df2bfda77644542cc72cd5d7949841805.tar.gz |
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/command.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 5b3c9e0..56849f1 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -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); |