From 6dbef6e7e0ec78f55b860bb2de37a3fdc3558831 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 10 Feb 2016 08:14:10 -0500 Subject: [PATCH] vtysh: Modify -b option to work with -n option If there is no Quagga.conf file and the -b option has been specified, the vtysh -b file is erroring out and failing. Modify the code to use -n in conjunction of -b and to not error out in this situation. Signed-off-by: Donald Sharp --- vtysh/vtysh_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 033b273e58..befc86e6e2 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -451,7 +451,10 @@ main (int argc, char **argv, char **env) { fprintf (stderr, "Can't open configuration file [%s]\n", integrate_default); - exit (1); + if (no_error) + exit (0); + else + exit (1); } else exit (0); -- 2.39.5