Previous code only set the real euid, not the effective one. This is not a security issue
as this is *only* used in the quota code, and only between code that brackets
it with save_re_uid()/restore_re_uid(), Also this is not used on most platforms
(we use USE_SETREUID by preference) but it's better to have this right.
(cherry picked from commit
ceed322622b46be3745b32a5f6a02e634bfe1789)
(cherry picked from commit
a224e4cc1dbb2578813ccffb80e88d9ec92516ce)
uid_t uid = geteuid();
#if USE_SETRESUID
- setresuid(geteuid(), -1, -1);
+ setresuid(uid, uid, -1);
#endif
#if USE_SETREUID