mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +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;
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user