]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: fix entering configuration node in file-lock mode
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 27 Sep 2023 23:45:05 +0000 (02:45 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 28 Sep 2023 07:04:00 +0000 (07:04 +0000)
commit3239fed90cb13152220ea8a6d2c678db60aec843
tree05f3e3867a6cc23311a5e00a6e6efc3b1aeeb7cf
parent8a1ca709f855769ebda3189a74d04d090be9aee1
vtysh: fix entering configuration node in file-lock mode

When the config node is entered in file-lock mode, we should actually
remember it to correctly apply the workaround in `vtysh_exit`.
Otherwise, the file-lock mode is dropped once we exit any node one level
below the config node.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 1a09cf38949c2f2ab6d926941329e264f50d6880)
vtysh/vtysh.c