aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-12-10 09:49:47 +0000
committerWerner Koch <[email protected]>2009-12-10 09:49:47 +0000
commit31844d30cd604d3da90a0f773f92c7468a9c5b22 (patch)
tree0ec905d980f4dac90a09fb993d4103239f3f8700 /src
parentForgotten file. (diff)
downloadgpgme-31844d30cd604d3da90a0f773f92c7468a9c5b22.tar.gz
gpgme-31844d30cd604d3da90a0f773f92c7468a9c5b22.zip
Test on sgid process
Diffstat (limited to '')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/debug.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 608db50a..61bc3949 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-10 Werner Koch <[email protected]>
+
+ * debug.c (debug_init): Test on sgid process.
+
2009-12-08 Marcus Brinkmann <[email protected]>
* Makefile.am (LTRCCOMPILE): Refactor with ...
@@ -5810,7 +5814,7 @@
* wait.c: Include `engine.h'.
(run_idle): Call _gpgme_engine_housecleaning(), not
_gpgme_gpg_housecleaning().
-
+
2001-12-18 Marcus Brinkmann <[email protected]>
* key.c (_gpgme_key_append_name): Append, not prepend, the uid.
diff --git a/src/debug.c b/src/debug.c
index d3fce779..1471ff24 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -131,7 +131,11 @@ debug_init (void)
if (s1)
{
#ifndef HAVE_DOSISH_SYSTEM
- if (getuid () == geteuid ())
+ if (getuid () == geteuid ()
+#if defined(HAVE_GETGID) && defined(HAVE_GETEGID)
+ && getgid () == getegid ()
+#endif
+ )
{
#endif
char *p;