From ed92abc56b1fda5fb8b5d640194cd39a8fdb986a Mon Sep 17 00:00:00 2001 From: Kelly Yancey Date: Sat, 25 Jan 2003 01:28:11 +0000 Subject: [PATCH] Since route(8) itself is no longer setuid, we can get a meaningful answer for the euid. As a result, fix it such that setuid scripts or programs may call route(8) to do work on their behalf. Reviewed by: ru MFC after: 3 days --- sbin/route/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/route/route.c b/sbin/route/route.c index 2ddc50d8fd7e..8d9a0ff98d98 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -173,7 +173,7 @@ main(argc, argv) argv += optind; pid = getpid(); - uid = getuid(); + uid = geteuid(); if (tflag) s = open(_PATH_DEVNULL, O_WRONLY, 0); else