1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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.
This commit is contained in:
Ruslan Ermilov 2003-04-16 12:06:53 +00:00
parent 5ea3e23965
commit 1becd59e62
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113559

View File

@ -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 */