diff options
author | Cedric Berger <cedric@cvs.openbsd.org> | 2004-04-26 06:24:21 +0000 |
---|---|---|
committer | Cedric Berger <cedric@cvs.openbsd.org> | 2004-04-26 06:24:21 +0000 |
commit | 50d7ddf906efcdad549794f593a82c1c795a2100 (patch) | |
tree | 27fda2f406614016ce7e81caba0c4ebadf7868ba /sbin | |
parent | afcee94cafaf440b446241edfc98df791c760b8c (diff) |
fix route with explicit -gateway modifier. ok deraadt@ itojun@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/route.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 195206b251c..62deac4209f 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.64 2004/04/07 09:43:00 deraadt Exp $ */ +/* $OpenBSD: route.c,v 1.65 2004/04/26 06:24:20 cedric Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94"; #else -static const char rcsid[] = "$OpenBSD: route.c,v 1.64 2004/04/07 09:43:00 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: route.c,v 1.65 2004/04/26 06:24:20 cedric Exp $"; #endif #endif /* not lint */ @@ -710,6 +710,7 @@ newroute(int argc, char **argv) if (!--argc) usage(1+*argv); (void) getaddr(RTA_GATEWAY, *++argv, 0); + gateway = *argv; break; case K_DST: if (!--argc) |