mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue