From 34a787b55768ddae6645862dc60434188e1fad8d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Nov 2007 16:16:58 +0000 Subject: [PATCH] *** empty log message *** --- ev.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ev.c b/ev.c index 20d0e3b..3e1e8b4 100644 --- a/ev.c +++ b/ev.c @@ -540,12 +540,16 @@ ev_version_minor (void) return EV_VERSION_MINOR; } -/* return true if we are running with elevated privileges and ignore env variables */ +/* return true if we are running with elevated privileges and should ignore env variables */ static int enable_secure () { +#ifdef WIN32 + return 0; +#else return getuid () != geteuid () || getgid () != getegid (); +#endif } int ev_init (int methods) -- 2.43.0