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:
parent
980d4f44b4
commit
c9f898d44f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user