diff options
author | ru <ru@FreeBSD.org> | 2003-04-16 12:06:53 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-04-16 12:06:53 +0000 |
commit | af0cc424b0c504f029c504a0f4e1f12b6d961efb (patch) | |
tree | 44c121c9361a8ea99a80335b9c908ec5f3ea5999 /sbin/route | |
parent | 23b30371f81dfe79f528e11ca4eeb87c75bc68cb (diff) | |
download | FreeBSD-src-af0cc424b0c504f029c504a0f4e1f12b6d961efb.zip FreeBSD-src-af0cc424b0c504f029c504a0f4e1f12b6d961efb.tar.gz |
There is an undocument feature that ``route -vnd flush'' prints
a nice dump of the entire routing table. Allow non-root users
to see it too.
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 7cdd7ce..452cf87 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -213,7 +213,7 @@ flushroutes(argc, argv) char *buf, *next, *lim; struct rt_msghdr *rtm; - if (uid) { + if (uid && !debugonly) { errx(EX_NOPERM, "must be root to alter routing table"); } shutdown(s, 0); /* Don't want to read back our messages */ |