summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog4
-rw-r--r--process.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 013d893..0baee6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Sep 5 20:35:52 2014 Tanaka Akira <akr@fsij.org>
+
+ * process.c (has_privilege): Fix a return value.
+
Fri Sep 5 19:00:40 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* lib/shellwords.rb: proofreading documentation.
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
{