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 | 1867a3f4981a3a51c7d92f6012149446af24dcae (patch) | |
tree | 35afdabc80e0a922cf9e47c7c644bed30cb1982e /file.c | |
parent | fb10e93036279b422ff566c92d91133623e8596b (diff) |
* file.c (file_load_ok): eaccess() returns 0 on success.
fixed: [ruby-dev:27713]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |