vtysh -f needs to flock the file

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by:   Donald Sharp <sharpd@cumulusnetworks.com>

Ticket: CM-10428
This commit is contained in:
Daniel Walton 2016-04-15 13:13:27 +00:00
parent 2fcc254eed
commit 8f6899f25b

View File

@ -422,7 +422,9 @@ main (int argc, char **argv, char **env)
if (inputfile) if (inputfile)
{ {
vtysh_flock_config (inputfile);
ret = vtysh_read_config(inputfile); ret = vtysh_read_config(inputfile);
vtysh_unflock_config ();
exit(ret); exit(ret);
} }