summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-05 11:36:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-05 11:36:19 +0000
commit4eed59e667536b77397afdd42823aafa4d8057b2 (patch)
treedd00595708da9fb67f811ee106c58bddebb8fd4d /process.c
parent925ac7ade7a238949e85e0ddfb7ebe4d2f901f5a (diff)
* process.c (has_privilege): Fix a return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 294f1be..dcbb71d 100644
--- a/process.c
+++ b/process.c
@@ -3367,7 +3367,7 @@ has_privilege(void)
if (ret == -1)
rb_sys_fail("getresgid(2)");
if (egid != sgid)
- return 0;
+ return 1;
}
#else
{