summaryrefslogtreecommitdiffstats
path: root/sbin/route/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/route/route.c')
-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 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 */
OpenPOWER on IntegriCloud