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); }