mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-01 12:47:16 +00:00
lib/frr: fix reference to zsuid before it is set
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
508f9997f2
commit
c888ea1647
@ -769,6 +769,7 @@ zprivs_init(struct zebra_privs_t *zprivs)
|
||||
}
|
||||
}
|
||||
|
||||
zprivs_state.zsuid = geteuid(); /* initial uid */
|
||||
/* add groups only if we changed uid - otherwise skip */
|
||||
if ((ngroups) && (zprivs_state.zsuid != zprivs_state.zuid))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user