mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Warn that the ``alias'' command is depricated.
We still process it for now though.
This commit is contained in:
parent
a366213452
commit
c1a6c9e21c
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue