summaryrefslogtreecommitdiffstats
path: root/sbin/route
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/route')
-rw-r--r--sbin/route/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index ed780dd..b94f457 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -748,7 +748,7 @@ newroute(argc, argv)
break;
}
if (*cmd == 'g')
- exit(0);
+ exit(ret != 0);
if (!qflag) {
oerrno = errno;
(void) printf("%s %s %s", cmd, ishost? "host" : "net", dest);
OpenPOWER on IntegriCloud