aboutsummaryrefslogtreecommitdiff
path: root/sbin/route
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2003-04-16 12:06:53 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2003-04-16 12:06:53 +0000
commit1becd59e628af6c17f7f8a9f136481ad1c3f15fd (patch)
tree44c121c9361a8ea99a80335b9c908ec5f3ea5999 /sbin/route
parent5ea3e2396516f076307ab19f1d9a5b6f708c995f (diff)
downloadsrc-1becd59e628af6c17f7f8a9f136481ad1c3f15fd.tar.gz
src-1becd59e628af6c17f7f8a9f136481ad1c3f15fd.zip
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.
Notes
Notes: svn path=/head/; revision=113559
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 7cdd7ce63bcd..452cf87eab87 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 */