diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-15 14:55:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-15 14:55:16 +0000 |
commit | ababd0ad80314840b749140384e5849e55a86e45 (patch) | |
tree | 35afdabc80e0a922cf9e47c7c644bed30cb1982e | |
parent | c5f22f53e08ceb656790f47966fbeaa77d47abd6 (diff) | |
download | ruby-ababd0ad80314840b749140384e5849e55a86e45.tar.gz ruby-ababd0ad80314840b749140384e5849e55a86e45.tar.xz ruby-ababd0ad80314840b749140384e5849e55a86e45.zip |
* file.c (file_load_ok): eaccess() returns 0 on success.
fixed: [ruby-dev:27713]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | file.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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: @@ -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; |