From a7c9e79190759d76a5396441fe6ac502d7b38835 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 17 Jul 2008 19:49:51 +0000 Subject: Revert that last stupid setuid detection fix. --- common/ChangeLog | 5 ----- common/exechelp.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'common') diff --git a/common/ChangeLog b/common/ChangeLog index 6fdf436f5..dcee95bbf 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,8 +1,3 @@ -2008-07-17 Werner Koch - - * exechelp.c (gnupg_spawn_process_detached): Do not run the setuid - test for root. - 2008-06-26 Werner Koch * estream.c (es_write_sanitized): Loose check for control 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)) -- cgit v1.2.3