From 9d5a10a4530c8579b034f7e7492ad4829ae883a8 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 17 Jul 2008 19:40:53 +0000 Subject: Do not run the setuid test if running under as root proper. Documentation fixes. Some enhancements for the new OpenPGP Card. --- common/exechelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/exechelp.c') 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)) -- cgit