aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/ChangeLog5
-rw-r--r--common/exechelp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/common/ChangeLog b/common/ChangeLog
index dcee95bbf..6fdf436f5 100644
--- a/common/ChangeLog
+++ b/common/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-17 Werner Koch <[email protected]>
+
+ * exechelp.c (gnupg_spawn_process_detached): Do not run the setuid
+ test for root.
+
2008-06-26 Werner Koch <[email protected]>
* estream.c (es_write_sanitized): Loose check for control
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))