summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--process.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e81b80..28c9024 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Sep 5 12:28:21 2014 Tanaka Akira <akr@fsij.org>
+
+ * process.c (has_privilege): Fix assignements.
+
Fri Sep 5 11:10:13 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* lib/rdoc/generator/pot/po.rb: fixed broken tests for trailing whitespace.
diff --git a/process.c b/process.c
index ee112d4..22783b7 100644
--- a/process.c
+++ b/process.c
@@ -3312,8 +3312,8 @@ has_privilege(void)
}
#else
{
- rb_uid_t ruid = getuid();
- rb_uid_t euid = geteuid();
+ ruid = getuid();
+ euid = geteuid();
}
#endif
@@ -3332,8 +3332,8 @@ has_privilege(void)
}
#else
{
- rb_gid_t rgid = getgid();
- rb_gid_t egid = getegid();
+ rgid = getgid();
+ egid = getegid();
}
#endif