From 31844d30cd604d3da90a0f773f92c7468a9c5b22 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 10 Dec 2009 09:49:47 +0000 Subject: Test on sgid process --- src/debug.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/debug.c') 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; -- cgit v1.2.3