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
This commit is contained in:
kbyanc 2003-01-25 01:28:11 +00:00
parent 980d4f44b4
commit c9f898d44f

View File

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