From 8f6899f25b27f7bf1ad562d8f991d9407fee266e Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Fri, 15 Apr 2016 13:13:27 +0000 Subject: [PATCH] vtysh -f needs to flock the file Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp Ticket: CM-10428 --- vtysh/vtysh_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 3c06eec7e9..1d40ab4cca 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -422,7 +422,9 @@ main (int argc, char **argv, char **env) if (inputfile) { + vtysh_flock_config (inputfile); ret = vtysh_read_config(inputfile); + vtysh_unflock_config (); exit(ret); } -- 2.39.5