aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-07-17 19:40:53 +0000
committerWerner Koch <[email protected]>2008-07-17 19:40:53 +0000
commit9d5a10a4530c8579b034f7e7492ad4829ae883a8 (patch)
tree127fca25e584b5189a957297e6f984a1271b5612 /common/exechelp.c
parentMinor fixes. (diff)
downloadgnupg-9d5a10a4530c8579b034f7e7492ad4829ae883a8.tar.gz
gnupg-9d5a10a4530c8579b034f7e7492ad4829ae883a8.zip
Do not run the setuid test if running under as root proper.
Documentation fixes. Some enhancements for the new OpenPGP Card.
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 dcbbe90b0..90071e775 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() != geteuid())
+ if (getuid() && getuid() != geteuid())
return gpg_error (GPG_ERR_BUG);
if (access (pgmname, X_OK))