diff options
author | Werner Koch <[email protected]> | 2009-12-10 09:49:47 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-12-10 09:49:47 +0000 |
commit | 31844d30cd604d3da90a0f773f92c7468a9c5b22 (patch) | |
tree | 0ec905d980f4dac90a09fb993d4103239f3f8700 /src/debug.c | |
parent | Forgotten file. (diff) | |
download | gpgme-31844d30cd604d3da90a0f773f92c7468a9c5b22.tar.gz gpgme-31844d30cd604d3da90a0f773f92c7468a9c5b22.zip |
Test on sgid process
Diffstat (limited to 'src/debug.c')
-rw-r--r-- | src/debug.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |