]> git.puffer.fish Git - mirror/frr.git/commit
vtysh: don't install "enable" command in user mode 9166/head
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 23 Jul 2021 15:38:20 +0000 (18:38 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Sun, 25 Jul 2021 10:08:04 +0000 (13:08 +0300)
commitc54796288e8b55b3f5c241aa242ef81f1df76e44
treede9950048f3bd7ad911efbc9809687a3a855661b
parentc48ebbdb2021fb01a1a8a7ad8ef9ef99e418c6a3
vtysh: don't install "enable" command in user mode

Recent change in d1b287e only fixed the problem for 3-letter words.

We were still displaying error for longer words starting with "ena":
```
nfware> enac
% Command not allowed: enable
nfware> enad
% Command not allowed: enable
nfware> enaena
% Command not allowed: enable
```

If we don't allow "enable" command in user mode, why add it at all?

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
vtysh/vtysh.c