]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: track and fix file-lock use in the workaround from 2004
authorChristian Hopps <chopps@labn.net>
Fri, 14 Jul 2023 22:21:55 +0000 (18:21 -0400)
committerChristian Hopps <chopps@labn.net>
Fri, 14 Jul 2023 22:24:44 +0000 (18:24 -0400)
commit07035ce9548021c2d9484358aa620572d7dad851
treea9d468b9ab4e007cd34330f31ac9d5232976d6b3
parent76835fd55868b485b17c3f9091721335bd466cd8
vtysh: track and fix file-lock use in the workaround from 2004

There's a workaround in the code from a bug from back in 2004, it ends
and re-enters config mode anytime an `exit` is done from a level below
the top-level config node (e.g., from a `router isis` node). We need to
re-enter config mode with or without a lock according to how we actually
entered it to begin with.

fixes #13920

Signed-off-by: Christian Hopps <chopps@labn.net>
lib/vty.h
vtysh/vtysh.c
vtysh/vtysh_config.c