summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
{