mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Do not run the setuid test if running under as root proper.
Documentation fixes. Some enhancements for the new OpenPGP Card.
This commit is contained in:
parent
e253f0cb55
commit
9d5a10a453
37 changed files with 8193 additions and 5823 deletions
|
@ -2015,9 +2015,9 @@ main (int argc, char **argv)
|
|||
got_secmem = 1;
|
||||
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
||||
/* There should be no way to get to this spot while still carrying
|
||||
setuid privs. Just in case, bomb out if we are. */
|
||||
if(getuid()!=geteuid())
|
||||
BUG();
|
||||
setuid privs. Just in case, bomb out if we are (and are not root). */
|
||||
if (getuid () && getuid () != geteuid ())
|
||||
BUG ();
|
||||
#endif
|
||||
maybe_setuid = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue