aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.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 /common/exechelp.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 'common/exechelp.c')
-rw-r--r--common/exechelp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/exechelp.c b/common/exechelp.c
index 90071e775..dcbbe90b0 100644
--- a/common/exechelp.c
+++ b/common/exechelp.c
@@ -826,7 +826,7 @@ gnupg_spawn_process_detached (const char *pgmname, const char *argv[],
pid_t pid;
int i;
- if (getuid() && getuid() != geteuid())
+ if (getuid() != geteuid())
return gpg_error (GPG_ERR_BUG);
if (access (pgmname, X_OK))