aboutsummaryrefslogtreecommitdiffstats
path: root/g10/exec.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/exec.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/exec.c')
-rw-r--r--g10/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/exec.c b/g10/exec.c
index 40561e871..9ecd2ab64 100644
--- a/g10/exec.c
+++ b/g10/exec.c
@@ -318,8 +318,8 @@ int exec_write(struct exec_info **info,const char *program,
#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