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
4a3381caae
commit
ed92abc56b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109811
@ -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