> This call
>
> setuid(geteuid());
>
> is found in backend/utils/init/postinit.c. AFAICT, this does nothing.
> Anyone got an idea?
Well, from my BSD manual it says:
The setuid() function sets the real and effective user IDs and the saved set-user-ID of the current process to
thespecified value. The setuid()
so it seems to make sure the real/saved uid matches the effective uid.
Now, considering we don't use uid/euid distinction for anything, I agree
it is useless and should be removed.
I don't see any mention of getuid() except in odbc and pg_id. Seems
they should be geteuid() too.
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026