summaryrefslogtreecommitdiffstats
path: root/lib/librthread/rthread_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librthread/rthread_debug.c')
-rw-r--r--lib/librthread/rthread_debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/librthread/rthread_debug.c b/lib/librthread/rthread_debug.c
index aefc34da834..bca185afbaf 100644
--- a/lib/librthread/rthread_debug.c
+++ b/lib/librthread/rthread_debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_debug.c,v 1.2 2011/11/06 11:48:59 guenther Exp $ */
+/* $OpenBSD: rthread_debug.c,v 1.3 2012/03/13 05:51:30 guenther Exp $ */
/* $snafu: rthread_debug.c,v 1.2 2004/12/09 18:41:44 marc Exp $ */
/* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */
@@ -64,6 +64,8 @@ _rthread_debug_init(void)
char *envp;
char *rem;
+ if (issetugid())
+ return;
envp = getenv(RTHREAD_ENV_DEBUG);
if (envp) {
_rthread_debug_level = (int) strtol(envp, &rem, 0);