mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
fb10e93036
commit
1867a3f498
2 changed files with 6 additions and 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:
|
||||
|
|
2
file.c
2
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;
|
||||
|
|
Loading…
Reference in a new issue