aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.c
diff options
context:
space:
mode:
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))