summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-07-17 21:40:53 +0200
committerWerner Koch <wk@gnupg.org>2008-07-17 21:40:53 +0200
commit9d5a10a4530c8579b034f7e7492ad4829ae883a8 (patch)
tree127fca25e584b5189a957297e6f984a1271b5612 /common
parentMinor fixes. (diff)
downloadgnupg2-9d5a10a4530c8579b034f7e7492ad4829ae883a8.tar.xz
gnupg2-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')
-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 <wk@g10code.com>
+
+ * exechelp.c (gnupg_spawn_process_detached): Do not run the setuid
+ test for root.
+
2008-06-26 Werner Koch <wk@g10code.com>
* 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))