Correctly fallback into the normal path when SETXID_SUPPORT is defined
but the binary was the normal one. Fixes PR#23471.
This commit is contained in:
parent
b27349c286
commit
71f20d1fa2
3
gnu/dist/cvs/src/server.c
vendored
3
gnu/dist/cvs/src/server.c
vendored
@ -5218,9 +5218,8 @@ error 0 %s: no such system user\n", username);
|
||||
if (getuid() != geteuid())
|
||||
rc = setuid (geteuid ());
|
||||
else
|
||||
#else
|
||||
rc = setuid (pw->pw_uid);
|
||||
#endif
|
||||
rc = setuid (pw->pw_uid);
|
||||
if (rc < 0)
|
||||
{
|
||||
/* Note that this means that if run as a non-root user,
|
||||
|
Loading…
x
Reference in New Issue
Block a user