diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-18 18:14:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-18 18:14:58 +0200 |
commit | de72643d15dff0225e7d05b130dd34db9e7c08fb (patch) | |
tree | 1326c1ae7db8932a55a7a16ffe964d2e7f42d3fc /lib/privs.c | |
parent | Merge remote-tracking branch 'origin/stable/3.0' (diff) | |
parent | bgpd: restore -S, --skip_runas options (diff) | |
download | frr-de72643d15dff0225e7d05b130dd34db9e7c08fb.tar.xz frr-de72643d15dff0225e7d05b130dd34db9e7c08fb.zip |
Merge pull request #315 from LabNConsulting/working/master/patch/bgp-startup
Restore functionality broken/overridden by 857b5446497505f582417e4a5ada029712743cbc
Diffstat (limited to 'lib/privs.c')
-rw-r--r-- | lib/privs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/privs.c b/lib/privs.c index decd4bb7d..767ab667e 100644 --- a/lib/privs.c +++ b/lib/privs.c @@ -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)) { |