diff options
author | Werner Koch <wk@gnupg.org> | 2008-07-17 21:49:51 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-07-17 21:49:51 +0200 |
commit | a7c9e79190759d76a5396441fe6ac502d7b38835 (patch) | |
tree | 40b23f8ca0a6e484c07ac03b2912bcdd5c256ea2 /common | |
parent | Do not run the setuid test if running under as root proper. (diff) | |
download | gnupg2-a7c9e79190759d76a5396441fe6ac502d7b38835.tar.xz gnupg2-a7c9e79190759d76a5396441fe6ac502d7b38835.zip |
Revert that last stupid setuid detection fix.
Diffstat (limited to 'common')
-rw-r--r-- | common/ChangeLog | 5 | ||||
-rw-r--r-- | common/exechelp.c | 2 |
2 files changed, 1 insertions, 6 deletions
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 <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 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)) |