summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--file.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0e88963e9..5ced5f2df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 15 23:54:24 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_load_ok): eaccess() returns 0 on success.
+ fixed: [ruby-dev:27713]
+
Tue Nov 15 16:36:03 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* array.c (rb_ary_fill): previous commit disabled this usage:
diff --git a/file.c b/file.c
index d41c2f48a..bdd12d094 100644
--- a/file.c
+++ b/file.c
@@ -3956,7 +3956,7 @@ is_macos_native_path(const char *path)
static int
file_load_ok(const char *path)
{
- return eaccess(path, R_OK);
+ return eaccess(path, R_OK) == 0;
}
extern VALUE rb_load_path;