summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'vtysh/vtysh_main.c')
-rw-r--r--vtysh/vtysh_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index 033b273e5..befc86e6e 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);