diff options
author | root <root> | 2007-11-03 16:16:58 +0000 |
---|---|---|
committer | root <root> | 2007-11-03 16:16:58 +0000 |
commit | 34a787b55768ddae6645862dc60434188e1fad8d (patch) | |
tree | 21e8ae8dc4e9bf3652edab00983243a6073319d4 | |
parent | 149ff7181e0f706d39af5f837a6da24fcfc50cbb (diff) |
*** empty log message ***
-rw-r--r-- | ev.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |