diff options
Diffstat (limited to 'sbin/route')
-rw-r--r-- | sbin/route/route.c | 2 |
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); |