diff options
author | Werner Koch <[email protected]> | 2008-07-17 19:49:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2008-07-17 19:49:51 +0000 |
commit | a7c9e79190759d76a5396441fe6ac502d7b38835 (patch) | |
tree | 40b23f8ca0a6e484c07ac03b2912bcdd5c256ea2 /g10/gpg.c | |
parent | Do not run the setuid test if running under as root proper. (diff) | |
download | gnupg-a7c9e79190759d76a5396441fe6ac502d7b38835.tar.gz gnupg-a7c9e79190759d76a5396441fe6ac502d7b38835.zip |
Revert that last stupid setuid detection fix.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r-- | g10/gpg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2015,8 +2015,8 @@ 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 (and are not root). */ - if (getuid () && getuid () != geteuid ()) + setuid privs. Just in case, bomb out if we are. */ + if ( getuid () != geteuid () ) BUG (); #endif maybe_setuid = 0; |