aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-07-17 19:49:51 +0000
committerWerner Koch <[email protected]>2008-07-17 19:49:51 +0000
commita7c9e79190759d76a5396441fe6ac502d7b38835 (patch)
tree40b23f8ca0a6e484c07ac03b2912bcdd5c256ea2 /g10/gpg.c
parentDo not run the setuid test if running under as root proper. (diff)
downloadgnupg-a7c9e79190759d76a5396441fe6ac502d7b38835.tar.gz
gnupg-a7c9e79190759d76a5396441fe6ac502d7b38835.zip
Revert that last stupid setuid detection fix.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index c226b1e35..0601f50f0 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -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;