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:
enami 2004-04-01 01:51:04 +00:00
parent b27349c286
commit 71f20d1fa2

View File

@ -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,