diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-09 10:01:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-09 10:01:58 +0000 |
commit | b131f63d048d9bbcc2ce81e3262f64573734eca3 (patch) | |
tree | da0a287a84613ca9967f9de7cab407d2e4ded4a3 | |
parent | 84373d19684616502c2bd5180aa29aeec805f1e4 (diff) |
route -q is supposed to be totally quiet
-rw-r--r-- | sbin/route/route.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 159191250ce..09bc3b1d82c 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.60 2003/08/26 08:33:12 itojun Exp $ */ +/* $OpenBSD: route.c,v 1.61 2004/01/09 10:01:57 deraadt 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.60 2003/08/26 08:33:12 itojun Exp $"; +static const char rcsid[] = "$OpenBSD: route.c,v 1.61 2004/01/09 10:01:57 deraadt Exp $"; #endif #endif /* not lint */ @@ -1379,7 +1379,8 @@ rtmsg(int cmd, int flags) if (debugonly) return (0); if ((rlen = write(s, (char *)&m_rtmsg, l)) < 0) { - perror("writing to routing socket"); + if (qflag == 0) + perror("writing to routing socket"); return (-1); } if (cmd == RTM_GET) { |