Subject: Re: cvs commit: src/lib/libc/db/hash hash_buf.c
To: Justin T. Gibbs <gibbs@freefall.freebsd.org>
From: matthew green <mrg@eterna.com.au>
List: tech-userlevel
Date: 10/18/1996 18:47:09
   >A program which calls setuid() isn't SUID any more.  Once done, that's
   >terminal (and can't be "recalled").
   
   The saved UID is not perterbed which allows you to determine that the
   program was setuid.

setuid() changes the effective, real and saved user ids.  RTFM if you
don't believe me.

the correct way to check if a process was started setuid or setgid is
to check the SUGID flag.