mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +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:
parent
5ea3e23965
commit
1becd59e62
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113559
@ -213,7 +213,7 @@ flushroutes(argc, argv)
|
|||||||
char *buf, *next, *lim;
|
char *buf, *next, *lim;
|
||||||
struct rt_msghdr *rtm;
|
struct rt_msghdr *rtm;
|
||||||
|
|
||||||
if (uid) {
|
if (uid && !debugonly) {
|
||||||
errx(EX_NOPERM, "must be root to alter routing table");
|
errx(EX_NOPERM, "must be root to alter routing table");
|
||||||
}
|
}
|
||||||
shutdown(s, 0); /* Don't want to read back our messages */
|
shutdown(s, 0); /* Don't want to read back our messages */
|
||||||
|
Loading…
Reference in New Issue
Block a user